92 lines
No EOL
4 KiB
Text
92 lines
No EOL
4 KiB
Text
@using Kreta.Web.Areas.Intezmeny.Models
|
|
@model EszkozModel
|
|
|
|
<div class="container-fluid details">
|
|
@using (Html.KretaForm("EszkozForm"))
|
|
{
|
|
@Html.KretaValidationSummary()
|
|
|
|
@Html.HiddenFor(x => x.ID)
|
|
<div class="row">
|
|
@Html.KretaTextBoxFor(x => x.Nev).RenderWithName(3, 3)
|
|
@Html.KretaComboBoxFor(x => x.Jelleg, Model.JellegList).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.TeremID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" }), "Text", "Value", onChangeFunction: "EszkozHelper.TeremValidacio()", useGroup: false).AutoBind(true).RenderWithName(3, 3)
|
|
@Html.KretaComboBoxFor(x => x.SzemelyiFelelos, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTanar" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.Tipus, Model.TipusList).RenderWithName(3, 3)
|
|
@Html.KretaComboBoxFor(x => x.Kategoria, Model.KategoriaList).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.BeszerzesDatum).RenderWithName(3, 3)
|
|
@Html.KretaNumericFor(x => x.BeszerzesiAr).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaNumericFor(x => x.Darabszam).Min(0).Max(99999).RenderWithName(3, 3)
|
|
@Html.KretaComboBoxFor(x => x.MennyisegiEgyseg, Model.MertekegysegList).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaMaskedTextBoxFor(x => x.GyartasiEv, "0000").RenderWithName(3, 3)
|
|
@Html.KretaTextBoxFor(x => x.GyariSzam).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaTextBoxFor(x => x.Szallito).RenderWithName(3, 3)
|
|
@Html.KretaTextBoxFor(x => x.Vonalkod).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaTextBoxFor(x => x.FokonyviSzam).RenderWithName(3, 3)
|
|
@Html.KretaTextBoxFor(x => x.LeltariSzam).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.Celja, Model.CeljaList).RenderWithName(3, 3)
|
|
@Html.KretaCheckBoxFor(x => x.Tartozek).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaTextBoxFor(x => x.TartozekHivatkozas).RenderWithName(3, 3)
|
|
@Html.KretaCheckBoxFor(x => x.PedagogusHozzaferhet).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.TanuloHozzaferhet).RenderWithName(3, 3)
|
|
@Html.KretaCheckBoxFor(x => x.Berelt).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.Multimedias).RenderWithName(3, 3)
|
|
@Html.KretaCheckBoxFor(x => x.InternetKapcsolat).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.Hordozhato).RenderWithName(3, 3)
|
|
@Html.KretaCheckBoxFor(x => x.HalozatiKapcsolat).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.NemMukodik).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaTextBoxFor(x => x.Megjegyzes).RenderWithName(3, 3)
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if ($("#Tartozek").is(':checked')) {
|
|
$("#TartozekHivatkozas").attr("disabled", false);
|
|
}
|
|
else {
|
|
$("#TartozekHivatkozas").attr("disabled", true);
|
|
$("#TartozekHivatkozas").val("");
|
|
}
|
|
});
|
|
|
|
$("#Tartozek").change(function () {
|
|
if (this.checked) {
|
|
$("#TartozekHivatkozas").attr("disabled", false);
|
|
$("#TartozekHivatkozas").val("");
|
|
}
|
|
else {
|
|
$("#TartozekHivatkozas").attr("disabled", true);
|
|
$("#TartozekHivatkozas").val("");
|
|
}
|
|
});
|
|
</script> |