init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,93 @@
|
|||
@using Kreta.Framework
|
||||
@using Kreta.Web.Classes
|
||||
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
||||
@model KovTanevNebuloBesorolasModel
|
||||
|
||||
@section AddJs {
|
||||
@Scripts.Render("~/bundles/OsztalyCsoportbaSorolas")
|
||||
|
||||
<script type="text/javascript">
|
||||
var KovTanevNebuloBesorolasHelper = (function () {
|
||||
var kovTanevNebuloBesorolasHelper = function () { };
|
||||
|
||||
var sorolasLogic = new SorolasLogic();
|
||||
sorolasLogic.FromUrl = "@Model.GetTanulokListFromUrl";
|
||||
sorolasLogic.FromAdditionalFunction = function () { KretaOsztalybaSorolasHelper.checkCsoportData("FromDDL", "ToDDL"); };
|
||||
sorolasLogic.ToUrl = "@Model.GetTanulokListToUrl";
|
||||
sorolasLogic.SaveUrl = "@Model.SaveUrl";
|
||||
sorolasLogic.SaveAdditionalFunction = function () { KretaOsztalybaSorolasHelper.afterSaveReloadDDL(); setBesorolhatoTanulok(); };
|
||||
sorolasLogic.SaveOnErrorFunction = SaveFeedBackError;
|
||||
|
||||
kovTanevNebuloBesorolasHelper.Save = function () {
|
||||
sorolasLogic.Save();
|
||||
};
|
||||
|
||||
kovTanevNebuloBesorolasHelper.changeToOsztaly = function () {
|
||||
sorolasLogic.changeToDdl();
|
||||
setBesorolhatoTanulok();
|
||||
};
|
||||
|
||||
function SaveFeedBackError(data) {
|
||||
var url = "@Model.GetTanulokListFromUrl";
|
||||
AjaxHelper.ShowError(data);
|
||||
if (typeof reloadFromDlUrl !== 'undefined') {
|
||||
AjaxHelper.DoGet(url, {}, KretaOsztalybaSorolasHelper.replaceToTanuloList);
|
||||
}
|
||||
}
|
||||
|
||||
function setBesorolhatoTanulok() {
|
||||
AjaxHelper.DoGet("@Model.GetTanulokListFromUrl", {}, function (data) {
|
||||
if (data.length) {
|
||||
KretaOsztalybaSorolasHelper.replaceFromTanuloList(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
sorolasLogic.init('@Model.DropKovTanevAlert' == 'True');
|
||||
sorolasLogic.initDate("Datum");
|
||||
sorolasLogic.changeToDdl();
|
||||
setBesorolhatoTanulok();
|
||||
});
|
||||
|
||||
return kovTanevNebuloBesorolasHelper;
|
||||
})();
|
||||
|
||||
</script>
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
@using (Html.KretaForm("SorolasForm"))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<div class="row">
|
||||
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary<string, object> { { "readonly", "readonly" } }).Min(Model.MinDatum).Max(Model.MinDatum).Value(Model.MinDatum).RenderWithName()
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TantervId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTantervList" }), "Text", "Value").AutoBind(true).RenderWithName()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@Html.KretaOsztalyCsoportSorolas(Model)
|
||||
<br />
|
||||
@Html.Partial("_ZaradekPartial", Model.Zaradek)
|
||||
<br />
|
||||
@Html.KretaSaveButton("submitBtn", "KovTanevNebuloBesorolasHelper.Save")
|
||||
}
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
.k-combobox:first-child {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.k-textbox {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue