init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
|
||||
@model TanuloHaziFeladatMentesModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div id="TanuloHazifeladatValidation">
|
||||
@Html.KretaValidationSummary()
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
@if (Model.TanarHaziFeladatId != null)
|
||||
{
|
||||
@Html.HiddenFor(m => m.TanarHaziFeladatId)
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
@Html.KretaDatePickerFor(x => x.Hatarido).RenderWithName(isCustomRequired: true)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaHtmlEditorFor(m => m.FeladatSzovege, false)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
123
KretaWeb/Areas/Orarend/Views/InformaciokOrarend/Index.cshtml
Normal file
123
KretaWeb/Areas/Orarend/Views/InformaciokOrarend/Index.cshtml
Normal file
|
@ -0,0 +1,123 @@
|
|||
@using Kreta.BusinessLogic.Security;
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@using Kreta.Framework;
|
||||
@using Kreta.Web.Security
|
||||
@model InformaciokOrarendModel
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
@section AddCss{
|
||||
@Styles.Render(Constants.General.KretaEditorCSS)
|
||||
<style>
|
||||
.BejegyzesTorles .k-button {
|
||||
color: #a94442;
|
||||
background-color: #e5e9ec;
|
||||
border-color: #ebccd1;
|
||||
}
|
||||
|
||||
.BejegyzesHozzaadas .k-button {
|
||||
color: #3c763d;
|
||||
background-color: #e5e9ec;
|
||||
border-color: #d6e9c6;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
@section AddJs {
|
||||
|
||||
@Scripts.Render("~/bundles/Calendar")
|
||||
<script type="text/javascript">
|
||||
var InformaciokOrarend = (function () {
|
||||
var clickURL = '@Url.Action("OrarendEvent", "InformaciokOrarend")';
|
||||
var informaciokOrarend = function () { };
|
||||
|
||||
var hetesekJSON = "";
|
||||
if ('@Model.HetesekJson' !== '') {
|
||||
var hetesekJSON = CommonUtils.JSONparse('@Model.HetesekJson'.replace(/\"/g, '"'));
|
||||
}
|
||||
|
||||
informaciokOrarend.CalendarClickEvent = function (e) {
|
||||
if (e.oraType == 5 || e.oraType == 6 || e.oraType == @((int)CalendarOraTypeEnum.Fogadoora)) { /*TanevRendjeEsemeny || UresOra*/
|
||||
return;
|
||||
}
|
||||
AjaxHelper.DoPost(clickURL, e, popUpDetailWindow);
|
||||
};
|
||||
|
||||
informaciokOrarend.detailOraInfoCancel = function () {
|
||||
KretaWindowHelper.destroyWindow("detailOraAdatokWindow");
|
||||
};
|
||||
|
||||
function CreateCalendar() {
|
||||
var calendar = new SDAFullCalendar();
|
||||
var pram = calendar.getParameters();
|
||||
pram.calendar = "Calendar";
|
||||
pram.minTime = '@Model.CalendarMinTime';
|
||||
pram.maxTime = '@Model.CalendarMaxTime';
|
||||
pram.kellCsengetesiRendMegjelenites = false;
|
||||
pram.calendarStartDate = "@DateTime.Now.ToString("yyyy-MM-dd")";
|
||||
pram.serviceURL = '@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "CalendarApi", action = "GetTanuloOrarend" })';
|
||||
pram.clickEvent = InformaciokOrarend.CalendarClickEvent;
|
||||
pram.hetirendek = '@Model.HetirendJson';
|
||||
pram.naptariHetekHetirend = '@Model.NaptariHetekHetirendJson';
|
||||
pram.naptariHetekUrl = '@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "CalendarApi", action = "GetTanevHetek" })';
|
||||
pram.kellOraTemaTooltip = '@Model.IsOraTemaTooltip';
|
||||
|
||||
calendar.initialize(pram);
|
||||
}
|
||||
|
||||
function popUpDetailWindow(data) {
|
||||
var config = KretaWindowHelper.getWindowConfigContainer();
|
||||
config.title = "@(StringResourcesUtil.GetString(2675))"; /*Tanulói óra adatai*/
|
||||
config.content = data;
|
||||
|
||||
var modal = KretaWindowHelper.createWindow("detailOraAdatokWindow", config);
|
||||
KretaWindowHelper.openWindow(modal, true);
|
||||
}
|
||||
|
||||
function SetHetesDiv() {
|
||||
if (hetesekJSON !== 'undefined' && hetesekJSON !== "") {
|
||||
|
||||
if ($("#hetesnevListId") !== 'undefined') {
|
||||
$("#hetesnevListId").empty();
|
||||
}
|
||||
var hetSorszam = $("#Calendar_tanevHetek").data("kendoComboBox").selectedIndex;
|
||||
|
||||
if (hetSorszam == -1) {
|
||||
hetSorszam = '@Model.AktualisHetSorszam';
|
||||
hetSorszam -= 1;
|
||||
}
|
||||
$.each(hetesekJSON, function (hetSorszama, hetesSzoveg) {
|
||||
if (hetSorszama == hetSorszam + 1) {
|
||||
$("#hetesnevListId").append(hetesSzoveg);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
CreateCalendar();
|
||||
$("#Calendar > .fc-toolbar").append("<div><p style='color:red; font-weight: bold; text-align:left;' id='hetesnevListId'></p> </div>");
|
||||
SetHetesDiv();
|
||||
|
||||
$("#Calendar_tanevHetek").change(function () {
|
||||
SetHetesDiv();
|
||||
});
|
||||
});
|
||||
|
||||
return informaciokOrarend;
|
||||
})();
|
||||
</script>
|
||||
}
|
||||
@if (ClaimData.FelhasznaloSzerepCsomagok.Contains(KretaClaimPackages.CsokkentettGondviselo.ClaimValue))
|
||||
{
|
||||
<div class="container-fluid details">
|
||||
<div class="col-xs-12 settings fa-border" style="background-color: whitesmoke">
|
||||
<h3>@OrarendResource.CsokkentettJogosultsag</h3>
|
||||
<div class="col-xs-12">
|
||||
<h5>@OrarendResource.FigyelemCsokkentettMod</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div id="Calendar">
|
||||
</div>
|
|
@ -0,0 +1,60 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@model InformaciokOraAdatai
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.Datum, 3, 3)
|
||||
@Html.KretaLabelFor(m => m.OraTartam, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.Targy, 3, 3)
|
||||
@Html.KretaLabelFor(m => m.Oraszam, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.Tanar, 3, 3)
|
||||
@if (Model.IsHelyettesitoTanarLathato)
|
||||
{
|
||||
@Html.KretaLabelFor(m => m.HelyettesitoTanar, 3, 3)
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.TanoraTemaEllenorzobenLathato)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.Tema, 3, 3)
|
||||
}
|
||||
@Html.KretaLabelFor(m => m.Terem, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.SzamonkeresMod, 3, 3)
|
||||
@Html.KretaLabelFor(m => m.SzamonkeresMegnevezes, 3, 3)
|
||||
</div>
|
||||
@if (Model.IsTanora)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.MulasztasText, 3, 3)
|
||||
</div>
|
||||
@*<div class="row toolbarHide">
|
||||
@Html.Label(OrarendResource.HaziFeladat)
|
||||
@Html.KretaHtmlEditorFor(m => m.HaziFeladat)
|
||||
</div>*@
|
||||
}
|
||||
|
||||
@if (Model.OpenBoardFiles.Length > 0)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.Raw(Model.OpenBoardFiles)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@*<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var editor = $("#HaziFeladat").data("kendoEditor");
|
||||
if(typeof editor !== "undefined") {
|
||||
$(editor.body).attr('contenteditable', false);
|
||||
}
|
||||
});
|
||||
</script>*@
|
|
@ -0,0 +1,8 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@model InformaciokOra
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@Html.KretaTabStripAjax("OraAdatokDetailTabStrip", Model.TabList)
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
@using Kreta.Web.Helpers.Modal;
|
||||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@using Kreta.Web.Helpers;
|
||||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@using Kreta.Resources;
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.BusinessLogic.Classes;
|
||||
@using Kreta.Web.Areas.Tanar.Models;
|
||||
@model TanuloHaziFeladatTabModel
|
||||
@{
|
||||
Layout = null;
|
||||
const string HaziFeladatCsatolmanyokApi = Kreta.Web.Constants.ApiControllers.InformaciokOrarendApi;
|
||||
const string gridName = "HFCsatolmanyGrid";
|
||||
|
||||
var MegoldottHFList = new List<SelectListItem>() {
|
||||
new SelectListItem() { Value = "T", Text = CommonResource.Igen },
|
||||
new SelectListItem() { Value = "F", Text = CommonResource.Nem }
|
||||
};
|
||||
|
||||
var gvHazifeladatMsg = "";
|
||||
gvHazifeladatMsg = Model.TanuloAltalMegoldva == "T" ? CommonResource.Igen : CommonResource.Nem;
|
||||
}
|
||||
|
||||
@Html.ValidationSummary()
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.TanarHaziFeladat.Id)
|
||||
|
||||
<div>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading" style="padding-top:0px">
|
||||
<div style="display:inline-block; padding-top:9px;">@(Model.TanarHaziFeladat.FeladasDatuma.ToShortDateString() + " " + Model.TanarHaziFeladat.TanarNev)</div>
|
||||
<div class="BejegyzesHozzaadas" style="float:right">
|
||||
@foreach (var item in Model.TanarHaziFeladat.Csatolmanyok)
|
||||
{
|
||||
@Html.Raw(" ");
|
||||
@Html.KretaButton(new ModalButtonModel() { Name = "csatolmany" + item.Key, Text = item.Value, Enabled = true, EventName = "function(){ TanuloHaziFeladatHelper.DownloadCsatolmany(" + item.Key + "); }" })
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@Html.RawRichText(Model.TanarHaziFeladat.FeladatSzovege) @Html.Raw(Model.TanarHaziFeladat.HaziFeladathozHozzaadottKepek) @*ide kell*@
|
||||
</div>
|
||||
@if (Model.TanarHaziFeladat.Hatarido != null && Model.TanarHaziFeladat.Hatarido != default(DateTime))
|
||||
{
|
||||
<div class="panel-footer" style="margin-left:1px;">@(OrarendResource.Hatarido + ": " + Model.TanarHaziFeladat.Hatarido.ToShortDateString())</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (Model.TanarHaziFeladat.Id.HasValue)
|
||||
{
|
||||
<div class="row" id="haziFeladatCsatolmanyokGridDiv">
|
||||
<div class="col-sm-12">
|
||||
@(
|
||||
Html.KretaGrid<HFCsatolmanyGridModel>
|
||||
(
|
||||
gridName,
|
||||
new GridApiUrl(HaziFeladatCsatolmanyokApi, "GetHFCsatolmanyokGridForHazi",
|
||||
new Dictionary<string, string>
|
||||
{
|
||||
{ "haziFeladatId", Model.TanarHaziFeladat.Id.ToString() }
|
||||
}),
|
||||
allowScrolling: true,
|
||||
showSorszam: false,
|
||||
sort: sort => sort.Add(s => s.FeltoltesDatum).Ascending()
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.FajlNev).Width("30%");
|
||||
columns.Bound(c => c.FajlMeretMB).Format("{0:n}").Width("30%");
|
||||
columns.Bound(c => c.FeltoltesDatum).Width("30%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var TanuloHaziFeladatHelper = (function () {
|
||||
var tanuloHaziFeladatHelper = function () { };
|
||||
var tanarHaziFeladatId = parseInt("@Model.TanarHaziFeladat.Id");
|
||||
if (isNaN(tanarHaziFeladatId)) { tanarHaziFeladatId = null; }
|
||||
|
||||
var downloadCsatolmanyUrl = "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new {controller = Constants.ApiControllers.HaziFeladatCsatolmanyokApi, action = "DownloadCsatolmanyFile" })";
|
||||
|
||||
tanuloHaziFeladatHelper.DownloadCsatolmany = function (id) {
|
||||
CommonUtils.formFileDownload(downloadCsatolmanyUrl, id);
|
||||
};
|
||||
|
||||
return tanuloHaziFeladatHelper;
|
||||
})();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue