init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
79
KretaWeb/Areas/Orarend/Views/InformaciokTanorak/Index.cshtml
Normal file
79
KretaWeb/Areas/Orarend/Views/InformaciokTanorak/Index.cshtml
Normal file
|
@ -0,0 +1,79 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@using Kreta.Web.Areas.Orarend.Models
|
||||
@using Kreta.Enums.ManualEnums;
|
||||
@using Kreta.Resources;
|
||||
|
||||
@model InformaciokSearchModel
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render(Constants.General.KretaEditorCSS)
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<InformaciokTanitasiOraGridModel>
|
||||
(
|
||||
name: "TanitasiOraGrid",
|
||||
getUrl: new GridApiUrl("InformaciokTanorakApi", "GetTanitasiOraGrid"),
|
||||
allowScrolling: true,
|
||||
sort: sort =>
|
||||
{
|
||||
sort.Add(m => m.Datum).Descending();
|
||||
sort.Add(m => m.OraSorsz).Descending();
|
||||
})
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(m => m.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(m => m.OraSorsz).Width("10%");
|
||||
columns.Bound(m => m.HetNapja_DNAME).Sortable(false).Width("10%");
|
||||
columns.Bound(m => m.TargyNev);
|
||||
columns.Bound(m => m.Tema).Visible(Model.TanoraTemaEllenorzobenLathato).SetDisplayPropertyWithToolip("Tema");
|
||||
columns.Bound(m => m.Evfolyam_DNAME);
|
||||
columns.Bound(m => m.TanarNevElotagNelkul).SetDisplayProperty("TanarNev");
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
.RowFunction(Html, new List<RowFunction> {
|
||||
new RowFunction { Name = CommonResource.Adatok, ClientAction= "InformaciokTanitasiOraHelper.openTanoraInfoWindow", IconEnum = GridRowFunctionIconEnum.Adatok }
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var InformaciokTanitasiOraHelper = (function () {
|
||||
var informaciokTanitasiOraHelper = function () { };
|
||||
|
||||
var gridName = "TanitasiOraGrid";
|
||||
|
||||
var url = {
|
||||
OpenTanitasiOraInfoPopUp: "@Url.Action("OpenTanitasiOraInfoPopUp", "InformaciokTanorak", new { area = "Orarend" })",
|
||||
}
|
||||
|
||||
informaciokTanitasiOraHelper.openTanoraInfoWindow = function (rowData) {
|
||||
var postData = { TanitasiOraId: rowData.ID, Datum: rowData.Datum };
|
||||
AjaxHelper.DoPost(url.OpenTanitasiOraInfoPopUp, postData, popUpInfoWindow);
|
||||
}
|
||||
|
||||
informaciokTanitasiOraHelper.tanitasiOraInfoCancel = function () {
|
||||
KretaWindowHelper.destroyWindow("tanitasiOraInfoWindow");
|
||||
}
|
||||
|
||||
function popUpInfoWindow(data) {
|
||||
var config = KretaWindowHelper.getWindowConfigContainer();
|
||||
config.title = "@(OrarendResource.TanoraAdatai)";
|
||||
config.maxWidth = "960px";
|
||||
config.height = "600px";
|
||||
config.content = data;
|
||||
|
||||
var modal = KretaWindowHelper.createWindow("tanitasiOraInfoWindow", config);
|
||||
KretaWindowHelper.openWindow(modal, true);
|
||||
}
|
||||
|
||||
return informaciokTanitasiOraHelper;
|
||||
})();
|
||||
</script>
|
|
@ -0,0 +1,59 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models
|
||||
|
||||
@model TanitasiOraInfoModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Datum, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.Oraszam, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.HetNapja, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.Hetirend, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Foglalkozas, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.OsztalyCsoport, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.Tantargy, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Tanar, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.Terem, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Megtartott, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.Sorszamozando, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.OraKezdete, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.OraVege, 3, 3)
|
||||
</div>
|
||||
|
||||
@if (Model.TanoraTemaEllenorzobenLathato)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Tema, 3, 9)
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.Megjegyzes, 3, 3)
|
||||
</div>
|
||||
<div class="row" style="padding-left: 20px; padding-right:10px;">
|
||||
@Html.Label(OrarendResource.HaziFeladat)
|
||||
<div class="toolbarHide" style="padding-top:10px;">
|
||||
@Html.KretaHtmlEditorFor(m => m.HaziFeladat)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var editor = $("#HaziFeladat").data("kendoEditor");
|
||||
if (typeof editor !== "undefined") {
|
||||
$(editor.body).attr('contenteditable', false);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue