init
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
@using Kreta.Web.Areas.GRModul.Models
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Security
|
||||
@model KotvallModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
@using (Html.KretaForm("KotvallForm"))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
@Html.HiddenFor(x => x.Id)
|
||||
<h4 class="normaltexttransform" style=" margin-top: 0px;">@KotvallKezelesResource.Alapadatok</h4>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.BejelentoNeve, 3, 9)
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsInfoView.HasValue && Model.IsInfoView.Value)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.BeszerzesTargyNeve, 3, 9)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaComboBoxFor(x => x.BeszerzesTargyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.KotvallKezelesApi, action = "GetKotvallTargyList" })).AutoBind(true).RenderWithName(3, 9)
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsInfoView.HasValue && Model.IsInfoView.Value)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.BeszerzesLeirasa, 3, 9)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaTextAreaFor(x => x.BeszerzesLeirasa).RenderWithName(3, 9)
|
||||
}
|
||||
</div>
|
||||
<h4 class="normaltexttransform">@KotvallKezelesResource.BeszerzesiIgenyBecsultErteke</h4>
|
||||
<div class="row">
|
||||
@if (Model.IsInfoView.HasValue && Model.IsInfoView.Value)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.VarhatoBruttoErtek, 3, 9)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaNumericFor(m => m.VarhatoBruttoErtek).Min(0).RenderWithName(3, 9)
|
||||
}
|
||||
</div>
|
||||
<h4 class="normaltexttransform">@KotvallKezelesResource.EgyebAdat</h4>
|
||||
<div class="row">
|
||||
@if (Model.IsInfoView.HasValue && Model.IsInfoView.Value)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.VisMajorIgeny_Str, 3, 9)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaCheckBoxFor(x => x.VisMajorIgeny).RenderWithName(3, 9)
|
||||
}
|
||||
</div>
|
||||
<div class="row divVisMajorIndok">
|
||||
@if (Model.IsInfoView.HasValue && Model.IsInfoView.Value)
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.VisMajorIndok, 3, 9)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaTextAreaFor(x => x.VisMajorIndok).RenderWithName()
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
setTimeout(function () {
|
||||
if (CommonUtils.parseBool("@Model.IsInfoView")) {
|
||||
var isChecked = "@Model.VisMajorIgeny_Str" == "@IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value)";
|
||||
setVisMajorIndok(isChecked);
|
||||
}
|
||||
else {
|
||||
setVisMajorIndok($('#VisMajorIgeny').is(':checked'));
|
||||
$('#VisMajorIgeny').click(function () {
|
||||
setVisMajorIndok($(this).is(':checked'));
|
||||
});
|
||||
}
|
||||
}, 1);
|
||||
});
|
||||
|
||||
function setVisMajorIndok(visMajorIgenyChecked) {
|
||||
if (CommonUtils.parseBool(visMajorIgenyChecked)) {
|
||||
$('.divVisMajorIndok').show();
|
||||
}
|
||||
else {
|
||||
$('.divVisMajorIndok').hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.k-window h4 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user