init
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Areas.Tantargy.Models
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@model TantargyModModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TargyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTargyKategoriaList" }), "Text", "Value", new Dictionary<string, object>() { { "style", "width: 75%" } }).AutoBind(true).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.ESLTargyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetESLTantargykategoriaList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsFoTargy, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" }), "Text", "Value", onChangeFunction: "TantargyHelper.hideOrShowComboBox()").AutoBind(true).RenderWithName()
|
||||
</div>
|
||||
<div id="FoTargyCombo" class="row" name="AltantargyAdat">
|
||||
@Html.KretaComboBoxFor(x => x.FoTargyID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFotargyakListWithoutSameTargyTobbesModify" }) + "?targyIdArrayString=" + Model.TantargyakIDArray, "Text", "Value", new Dictionary<string, object>() { { "style", "width: 75%" } }).AutoBind(true).RenderWithName()
|
||||
</div>
|
||||
<div class="row displayNone" name="AltantargyAdat">
|
||||
@Html.KretaComboBoxFor(x => x.AltantargyNyomtatvanyban, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).AutoBind(true).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.GyakorlatiTargy, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaNumericFor(x => x.Sorszam).Min(Kreta.Core.Constants.MinMaxValues.MinTantargySorszam).Max(Kreta.Core.Constants.MinMaxValues.MaxTantargySorszam).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsAmiTargyMod, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsMszgTargyMod, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsKollegiumiTargy, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsFelnottOktatasTargy, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsNincsBeloleOraMod, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.IsEgymiTargyMod, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
TantargyHelper.hideOrShowComboBox();
|
||||
var $isAmiTargy = $("#IsAmiTargyMod");
|
||||
var $isAmiTargyComboBox = $isAmiTargy.data("kendoComboBox");
|
||||
$isAmiTargy.on("focusout", isAmiTargychanged);
|
||||
$isAmiTargy.on("change", isAmiTargychanged);
|
||||
|
||||
var $isMszgTargy = $("#IsMszgTargyMod");
|
||||
var $isMszgTargyComboBox = $isMszgTargy.data("kendoComboBox");
|
||||
$isMszgTargy.on("focusout", isMszgTargychanged);
|
||||
$isMszgTargy.on("change", isMszgTargychanged);
|
||||
|
||||
function isAmiTargychanged() {
|
||||
if (!CommonUtils.isNullOrUndefined($isAmiTargyComboBox)
|
||||
&& !CommonUtils.isNullOrUndefined($isMszgTargyComboBox)
|
||||
&& $isAmiTargyComboBox.value() == "@((int)IgenNemEnum.Igen)") {
|
||||
$isMszgTargyComboBox.value("@((int)IgenNemEnum.Nem)");
|
||||
}
|
||||
}
|
||||
|
||||
function isMszgTargychanged() {
|
||||
if (!CommonUtils.isNullOrUndefined($isAmiTargyComboBox)
|
||||
&& !CommonUtils.isNullOrUndefined($isMszgTargyComboBox)
|
||||
&& $isMszgTargyComboBox.value() == "@((int)IgenNemEnum.Igen)") {
|
||||
$isAmiTargyComboBox.value("@((int)IgenNemEnum.Nem)");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user