init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,305 @@
|
|||
@using Kreta.Web.Areas.TanuloErtekeles.Controllers
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
||||
@using Kreta.Web.Helpers
|
||||
|
||||
@model MagatartasSzorgalomEditModel
|
||||
|
||||
@{
|
||||
var formName = MagatartasSzorgalomController.EditPopupFormName;
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
TanuloErtekelesHelper.setErtekelesNyelviesitesVisibility("@Model.TipusIdEdit", ".nyelviesitesDiv");
|
||||
});
|
||||
|
||||
$("#TipusIdEdit").change(function () {
|
||||
TanuloErtekelesHelper.setErtekelesNyelviesitesVisibility($("#TipusIdEdit").val(), ".nyelviesitesDiv");
|
||||
});
|
||||
</script>
|
||||
|
||||
@using (Html.KretaForm(formName))
|
||||
{
|
||||
@Html.HiddenFor(x => x.IdEdit)
|
||||
@Html.HiddenFor(x => x.TanuloIdEdit)
|
||||
@Html.HiddenFor(x => x.DatumMinValueEdit)
|
||||
@Html.HiddenFor(x => x.OsztalyCsoportIdEdit)
|
||||
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.ErtekeloNyomtatasiNevEdit, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaDatePickerFor(x => x.DatumEdit).Min(Model.DatumMinValueEdit > DateTime.Today ? DateTime.Today : Model.DatumMinValueEdit).Max(DateTime.Today).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TipusIdEdit, Model.TipusList).RenderWithName(3, 3)
|
||||
</div>
|
||||
@if (Model.IsMagatartasSzorgalomOsztalyzatIdSelected)
|
||||
{
|
||||
if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.MagatartasOsztalyzatIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@Html.KretaSelectorFor(x => x.MagatartasOsztalyzatIdEdit, Model.OsztalyzatList)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.SzorgalomOsztalyzatIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@Html.KretaSelectorFor(x => x.SzorgalomOsztalyzatIdEdit, Model.OsztalyzatList)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if (Model.IsMagatartasSzorgalomSzovegSelected)
|
||||
{
|
||||
<div class="row">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
@Html.KretaTextBoxFor(x => x.MagatartasSzovegRovidNevEdit, new Dictionary<string, object> { { "maxlength", 3 } }).RenderWithName(4, 2)
|
||||
}
|
||||
@Html.KretaTextBoxFor(x => x.SzorgalomSzovegRovidNevEdit, new Dictionary<string, object> { { "maxlength", 3 } }).RenderWithName(4, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.MagatartasSzovegEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.SzorgalomSzovegEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
if (Model.IsNyelviesitesActive)
|
||||
{
|
||||
if (Model.IsNemetNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.MagatartasSzovegNemetEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegNemetEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.SzorgalomSzovegNemetEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegNemetEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.MagatartasSzovegHorvatEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegHorvatEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.SzorgalomSzovegHorvatEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegHorvatEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsRomanNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.MagatartasSzovegRomanEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegRomanEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.SzorgalomSzovegRomanEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegRomanEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
@if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.MagatartasSzovegSzerbEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegSzerbEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="col-xs-6" style="padding: 0">
|
||||
<div class="col-xs-12">
|
||||
@Html.LabelFor(x => x.SzorgalomSzovegSzerbEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegSzerbEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (Model.IsMagatartasSzorgalomErtekSelected)
|
||||
{
|
||||
if (Model.IsMagatartasVisible)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-md-3">
|
||||
@Html.LabelFor(x => x.MagatartasErtekIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-9">
|
||||
@Html.KretaSelectorFor(x => x.MagatartasErtekIdEdit, Model.MagatartasErtekList)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-md-3">
|
||||
@Html.LabelFor(x => x.SzorgalomErtekIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-9">
|
||||
@Html.KretaSelectorFor(x => x.SzorgalomErtekIdEdit, Model.SzorgalomErtekList)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Controllers
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
||||
|
||||
@model MagatartasSzorgalomDetailModel
|
||||
|
||||
@{
|
||||
var gridName = Model.NamePrefix + BaseTanuloErtekelesController.DetailGridName + Model.ID;
|
||||
var javascriptClassName = gridName + "Helper";
|
||||
var tooltipClassName = "tanuloErtekelesDetailKendoTooltip";
|
||||
var tooltipDataAttributeName = "ertekelestext";
|
||||
var tooltipTemplateId = "kendoTooltip-ertekelesDetailKendoTooltipTemplate";
|
||||
}
|
||||
|
||||
<script>
|
||||
var @javascriptClassName = (function () {
|
||||
var gridDetailHelper = function () { };
|
||||
|
||||
gridDetailHelper.dataBoundAdditionalFunction = function () {
|
||||
TanuloErtekelesHelper.setDetailGridRowAthuzas("@gridName");
|
||||
|
||||
var tanuloErtekelesKendoTooltip = $("." + "@tooltipClassName");
|
||||
KretaTooltipHelper.setTooltip(tanuloErtekelesKendoTooltip, "#" + "@tooltipTemplateId");
|
||||
}
|
||||
|
||||
gridDetailHelper.aktivTanuloErtekeles = function (rowData) {
|
||||
var isLezartOsztalyCsoport = MagatartasSzorgalomHelper.isLezartOsztalyCsoport();
|
||||
var result = !rowData.Torolt_BOOL && rowData.Modosithato_BOOL && rowData.ModosithatoByNaplozaras && !isLezartOsztalyCsoport;
|
||||
return result;
|
||||
}
|
||||
|
||||
return gridDetailHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
<div>
|
||||
@{
|
||||
var gridApiUrl = new GridApiUrl("MagatartasSzorgalomApi", "GetMagatartasSzorgalomDetailGrid", new Dictionary<string, string>
|
||||
{
|
||||
{ "TanuloId", Model.ID },
|
||||
{ "Datum", Model.Datum != null ? Model.Datum.ToString() : null },
|
||||
{ "FeladatKategoriaId", Model.FeladatKategoriaId.ToString() }
|
||||
});
|
||||
|
||||
var rowFunctionList = new List<RowFunction>
|
||||
{
|
||||
new RowFunction {NameResourceId = 116 /*Módosítás*/, ClientAction = "MagatartasSzorgalomHelper.openEditWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Modositas},
|
||||
new RowFunction {NameResourceId = 117 /*Törlés*/, ClientAction = "MagatartasSzorgalomHelper.deleteConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles}
|
||||
};
|
||||
}
|
||||
|
||||
@(
|
||||
Html.KretaGrid<MagatartasSzorgalomDetailGridModel>(
|
||||
gridName,
|
||||
gridApiUrl,
|
||||
useToolBar: false,
|
||||
dataBoundAdditionalFunction: javascriptClassName + ".dataBoundAdditionalFunction();",
|
||||
allowPaging: false,
|
||||
pageSizes: null
|
||||
)
|
||||
.TableHtmlAttributes(new { @class = "TanuloErtekelesDetailGrid" })
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Datum).Width("90px").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.ErtekeloNyomtatasiNev).Width("15%").SetDisplayPropertyWithToolip("ErtekeloNyomtatasiNev");
|
||||
columns.Bound(c => c.TipusId_DNAME).Width("15%").SetDisplayPropertyWithToolip("TipusId_DNAME");
|
||||
columns.Bound(c => c.TipusId).Visible(false);
|
||||
columns.Bound(c => c.RogzitesDatum).Width("90px").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.MagatartasText).Visible(Model.IsMagatartasVisible).SetHtmlDisplayPropertyWithToolip("MagatartasText", tooltipClassName, tooltipDataAttributeName).HeaderHtmlAttributes(new { @class = "headerWidthFix" }).Sortable(false);
|
||||
columns.Bound(c => c.SzorgalomText).SetHtmlDisplayPropertyWithToolip("SzorgalomText", tooltipClassName, tooltipDataAttributeName).HeaderHtmlAttributes(new { @class = "headerWidthFix" }).Sortable(false);
|
||||
})
|
||||
.ConditionalRowFunction(Html, rowFunctionList, javascriptClassName + ".aktivTanuloErtekeles")
|
||||
)
|
||||
</div>
|
||||
|
||||
@Html.KretaTooltipTemplate(tooltipTemplateId,
|
||||
@"<div class='kendoTooltip'>
|
||||
<p class='tooltipText'>#=target.data('" + tooltipDataAttributeName + @"')#</p>
|
||||
</div>")
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,53 @@
|
|||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Enums.ManualEnums.SystemSettings
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Controllers
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
||||
|
||||
@model MagatartasSzorgalomStartPopupModel
|
||||
|
||||
@{
|
||||
var formName = MagatartasSzorgalomController.StartPopupFormName;
|
||||
var keresoSzuroDivClass = Model.MagatartasSzorgalomKeresoSzuroList.Count > 1 ? string.Empty : "hidden";
|
||||
var magatartasSzorgalomKeresoSzuro = Model.MagatartasSzorgalomKeresoSzuro;
|
||||
}
|
||||
|
||||
@using (Html.KretaForm(formName))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
@Html.HiddenFor(m => m.MagatartasSzorgalomKeresoAdatTipus)
|
||||
<div class="container-fluid details">
|
||||
|
||||
<div class="@keresoSzuroDivClass">
|
||||
@Html.KretaSelectorFor(m => m.MagatartasSzorgalomKeresoSzuro, Model.MagatartasSzorgalomKeresoSzuroList, false, "MagatartasSzorgalomHelper.keresoSzuroOnClick")
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@Html.KretaComboBoxFor(m => m.TipusId, Model.TipusList).RenderWithName(4, 8, true)
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@Html.Kendo().DropDownListFor(m => m.OsztalyCsoportId).DataValueField("Value").DataTextField("Text").BindTo(Model.OsztalyCsoportListByFelhasznaloId).HtmlAttributes(new Dictionary<string, object> { { "data-labelmsg", "Osztály / Csoport *" } }).RenderWithName(4, 8, true)
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div align="center">
|
||||
@Html.KretaButton("StartTovabbButton", CommonResource.Tovabb).Events(e => e.Click("MagatartasSzorgalomHelper.startTovabb"))
|
||||
</div>
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var osztalyCsoportIdDropDownList = KretaDropDownListHelper.getKendoDropDownListData("OsztalyCsoportId");
|
||||
if (!CommonUtils.isUndefined(osztalyCsoportIdDropDownList)) {
|
||||
var model = KretaGridHelper.getSearchParameterObject("@(formName)");
|
||||
if ("@(magatartasSzorgalomKeresoSzuro)" === "@((int) MagatartasSzorgalomKeresoSzuroEnum.Ttf)" && model.MagatartasSzorgalomKeresoAdatTipus === "@((int) SystemSettingsMagatartasSzorgalomKeresesSzuroEnum.TTF)") {
|
||||
osztalyCsoportIdDropDownList.dataSource.data(@Html.Raw(Json.Encode(Model.OsztalyCsoportListByFoglalkozas)));
|
||||
osztalyCsoportIdDropDownList.select(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue