init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,142 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Enums.ManualEnums
|
||||
|
||||
@model TanuloMulasztasaiPopupModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<style>
|
||||
.k-header-line {
|
||||
background-color: #54a5d1;
|
||||
padding: 10px;
|
||||
}
|
||||
.k-header-line > .k-title {
|
||||
color: #ffffff;
|
||||
}
|
||||
</style>
|
||||
|
||||
@{
|
||||
var szervezetTipusId = Model.SzervezetTipusId;
|
||||
var kezeletlenMulasztasokGridName = "kezeletlenMulasztasokGrid";
|
||||
var kezeltMulasztasokGridName = "kezeltMulasztasokGrid";
|
||||
|
||||
//NOTE: Csoportvezetői nézethez kellenek!
|
||||
var kezeletlenNemTanoraiGridName = "kezeletlenNemTanoraiGrid";
|
||||
var kezeltNemTanoraiGridName = "kezeltNemTanoraiGrid";
|
||||
var controllerName = Model.SzerepkorViewType == Kreta.Enums.ManualEnums.SzerepkorViewTypeEnum.CsoportvezetoNezet ? Constants.Controllers.CsoportMulasztasok : szervezetTipusId.HasValue && szervezetTipusId == (int)SzervezetTipusEnum.Dualis ? Constants.Controllers.DualisMulasztasok : Constants.Controllers.Mulasztasok;
|
||||
}
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div>
|
||||
@if (Model.SzerepkorViewType == Kreta.Enums.ManualEnums.SzerepkorViewTypeEnum.CsoportvezetoNezet)
|
||||
{
|
||||
<p class="k-header-line"><span class="k-title">@HianyzasResource.NemTanoraiCeluCsoportok</span></p>
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloMulasztasaiPopupModel>(
|
||||
kezeletlenNemTanoraiGridName,
|
||||
new GridApiUrl(Model.ApiControllerName, "GetTanuloMulasztasaiGrid", new Dictionary<string, string>{
|
||||
{ "isTanorai", bool.FalseString },
|
||||
{ "igazolandok", bool.TrueString }
|
||||
}),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: Url.Action("TanuloKezeletlenMulasztasaiDetailGrid", controllerName, new { area = "Hianyzas", isTanorai = false, apiControllerName = Model.ApiControllerName }),
|
||||
clientTemplateWholeDataRow: true,
|
||||
allowSorting: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null,
|
||||
readDataFunction: "function(){ return { data: '" + Model.ToJson(true) + "' }; }"
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TanuloId).Hidden(true);
|
||||
columns.Bound(c => c.MulasztasDatuma).Title(StringResourcesUtils.GetString(5630)).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
)
|
||||
</div>
|
||||
<p class="k-header-line"><span class="k-title">@HianyzasResource.TanoraiCeluCsoportok</span></p>
|
||||
}
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloMulasztasaiPopupModel>(
|
||||
kezeletlenMulasztasokGridName,
|
||||
new GridApiUrl(Model.ApiControllerName, "GetTanuloMulasztasaiGrid", new Dictionary<string, string>{
|
||||
{ "isTanorai", bool.TrueString },
|
||||
{ "igazolandok", bool.TrueString }
|
||||
}),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: Url.Action("TanuloKezeletlenMulasztasaiDetailGrid", controllerName, new { area = "Hianyzas", isTanorai = true, apiControllerName = Model.ApiControllerName }),
|
||||
clientTemplateWholeDataRow: true,
|
||||
allowSorting: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null,
|
||||
readDataFunction: "function(){ return { data: '" + Model.ToJson(true) + "' }; }"
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TanuloId).Hidden(true);
|
||||
columns.Bound(c => c.MulasztasDatuma).Title(StringResourcesUtils.GetString(5630)).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<div>
|
||||
@if (Model.SzerepkorViewType == Kreta.Enums.ManualEnums.SzerepkorViewTypeEnum.CsoportvezetoNezet)
|
||||
{
|
||||
<p class="k-header-line"><span class="k-title">@HianyzasResource.NemTanoraiCeluCsoportok</span></p>
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloMulasztasaiPopupModel>(
|
||||
kezeltNemTanoraiGridName,
|
||||
new GridApiUrl(Model.ApiControllerName, "GetTanuloMulasztasaiGrid", new Dictionary<string, string> {
|
||||
{ "isTanorai", bool.FalseString },
|
||||
{ "igazolandok", false.ToString() }
|
||||
}),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: Url.Action("TanuloKezeltMulasztasaiDetailGrid", controllerName, new { area = "Hianyzas", isTanorai = false, apiControllerName = Model.ApiControllerName }),
|
||||
clientTemplateWholeDataRow: true,
|
||||
allowSorting: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null,
|
||||
readDataFunction: "function(){ return { data: '" + Model.ToJson(true) + "' }; }"
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TanuloId).Hidden(true);
|
||||
columns.Bound(c => c.MulasztasDatuma).Title(StringResourcesUtils.GetString(5631)).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
)
|
||||
</div>
|
||||
<p class="k-header-line"><span class="k-title">@HianyzasResource.TanoraiCeluCsoportok</span></p>
|
||||
}
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloMulasztasaiPopupModel>(
|
||||
kezeltMulasztasokGridName,
|
||||
new GridApiUrl(Model.ApiControllerName, "GetTanuloMulasztasaiGrid", new Dictionary<string, string> {
|
||||
{ "isTanorai", bool.TrueString },
|
||||
{ "igazolandok", false.ToString() }
|
||||
}),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: Url.Action("TanuloKezeltMulasztasaiDetailGrid", controllerName, new { area = "Hianyzas", isTanorai = true, apiControllerName = Model.ApiControllerName }),
|
||||
clientTemplateWholeDataRow: true,
|
||||
allowSorting: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null,
|
||||
readDataFunction: "function(){ return { data: '" + Model.ToJson(true) + "' }; }"
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TanuloId).Hidden(true);
|
||||
columns.Bound(c => c.MulasztasDatuma).Title(StringResourcesUtils.GetString(5631)).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue