init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,92 @@
|
|||
@using Kreta.Enums
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Areas.Tantargy.Models
|
||||
|
||||
@model TantargyModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
@Html.HiddenFor(x => x.ID)
|
||||
@Html.HiddenFor(x => x.GyakorlatigenyessegKategoriak)
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.TantargyNev, new Dictionary<string, object> { { "class", "tantargynev" } }).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.TantargyRovidNev).RenderWithName(3, 3)
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaNumericFor(x => x.Sorszam).Min(Kreta.Core.Constants.MinMaxValues.MinTantargySorszam).Max(Kreta.Core.Constants.MinMaxValues.MaxTantargySorszam).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.NevNyomtatvanyban).RenderWithName(3, 3)
|
||||
@Html.KretaTextBox("NevNyomtatvanybanHider", true, new Dictionary<string, object> { { "readonly", "true" }, { "data-labelmsg", TantargyResource.BizonyitvanybanMegjelenoNev } }).RenderWithName(3, 3)
|
||||
</div>
|
||||
|
||||
<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(3, 3)
|
||||
@Html.KretaComboBoxFor(x => x.ESLTargyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetESLTantargykategoriaList" })).AutoBind(true).RenderWithName(3, 3)
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaNumericFor(x => x.Gyakorlatigenyesseg).Min(1).Max(99).Decimals(0).RenderWithName(3, 3)
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.IsFoTargy).RenderWithName(3, 3, allSizeSame: true)
|
||||
@Html.KretaCheckBoxFor(x => x.GyakorlatiTargy).RenderWithName(3, 3, allSizeSame: true)
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.AltantargyNyomtatvanyban).RenderWithName(3, 3, allSizeSame: true)
|
||||
@if (Model.ID != null && Model.ID > 0)
|
||||
{
|
||||
@Html.KretaComboBoxFor(x => x.FoTargyID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFotargyakListWithoutSameTargy" }) + "?targyId=" + Model.ID.ToString(), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaComboBoxFor(x => x.FoTargyID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFotargyakList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
|
||||
}
|
||||
</div>
|
||||
|
||||
@*<div class="row"></div>*@
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Megjegyzes).RenderWithName(3, 9)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#IsFoTargy').unbind("change");
|
||||
$('#IsFoTargy').bind("change", foTargyChange);
|
||||
$('#IsFoTargy').bind("change", foTantargySelectRequired);
|
||||
$('#IsFoTargy').trigger("change");
|
||||
|
||||
$('#AltantargyNyomtatvanyban').unbind("change");
|
||||
$('#AltantargyNyomtatvanyban').bind("change", foTantargySelectRequired);
|
||||
$('#AltantargyNyomtatvanyban').trigger("change");
|
||||
|
||||
});
|
||||
|
||||
function foTantargySelectRequired() {
|
||||
var isAltantargyNyomtatvanyban = KretaCheckBoxHelper.getValue("AltantargyNyomtatvanyban");
|
||||
var isFoTantargy = KretaCheckBoxHelper.getValue("IsFoTargy");
|
||||
if (isAltantargyNyomtatvanyban || !isFoTantargy) {
|
||||
$("#FoTargyID").parent().parent().removeClass('disabledItem');
|
||||
if ($("[for*='FoTargyID']").text().indexOf("*") === -1) {
|
||||
$("[for*='FoTargyID']").append($("<span>", { "class": "required-indicator", "style": "padding-left:4px" }).text("*"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("[for*='FoTargyID'] .required-indicator").remove();
|
||||
}
|
||||
}
|
||||
|
||||
function foTargyChange() {
|
||||
var isFotargy = KretaCheckBoxHelper.getValue("IsFoTargy");
|
||||
if (!isFotargy) {
|
||||
$("#FoTargyID").parent().parent().removeClass('disabledItem');
|
||||
} else {
|
||||
$("#FoTargyID").parent().parent().addClass('disabledItem');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue