init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue