Ellenőrző lap mdosíthatósága

This commit is contained in:
2025-06-05 08:12:27 +02:00
parent ff9d6ae361
commit 75d8119880
3 changed files with 15 additions and 10 deletions
@@ -17,8 +17,12 @@ namespace WorkFlowCheck.Web.Helpers
string dataType = GetDataTypeString(type);
output.Attributes.SetAttribute("data-type", dataType);
// 🔥 EZ HIÁNYZIK → Rakd be!
output.Attributes.RemoveAll("asp-for-datatype");
}
private string GetDataTypeString(Type type)
{
// Nullable<T> esetén nyerjük ki az alaptípust
@@ -33,23 +33,23 @@
<div class="tab-pane fade show active" id="general" role="tabpanel">
<form method="post" id="CheckListHeaderForm">
<meta name="csrf-token" content="@Antiforgery.GetAndStoreTokens(HttpContext).RequestToken" />
<input type="hidden" asp-for="CheckListHeaderDTO.Id" />
<input type="hidden" asp-for="CheckListHeaderDTO.IsEditable" />
<input type="hidden" asp-for="CheckListHeaderDTO.IsStorno" />
<input type="hidden" asp-for="CheckListHeaderDTO.GuidNumber" />
<input type="hidden" asp-for="CheckListHeaderDTO.CheckListTemplateHeaderId" />
<input type="hidden" asp-for="CheckListHeaderDTO.UserId" />
<input type="hidden" name="CheckListHeaderDTO.DateExecution" value="@Model.CheckListHeaderDTO.DateExecution.ToString("yyyy-MM-dd")" />
<input type="hidden" asp-for="CheckListHeaderDTO.AcceptUserId" />
<input type="hidden" asp-for="CheckListHeaderDTO.Id" data-type="int" />
<input type="hidden" asp-for="CheckListHeaderDTO.IsEditable" data-type="bool" />
<input type="hidden" asp-for="CheckListHeaderDTO.IsStorno" data-type="bool" />
<input type="hidden" asp-for="CheckListHeaderDTO.GuidNumber" />
<input type="hidden" asp-for="CheckListHeaderDTO.CheckListTemplateHeaderId" data-type="int" />
<input type="hidden" asp-for="CheckListHeaderDTO.UserId" data-type="int" />
<input type="hidden" name="CheckListHeaderDTO.DateExecution" value="@Model.CheckListHeaderDTO.DateExecution.ToString("yyyy-MM-dd")" />
<input type="hidden" asp-for="CheckListHeaderDTO.AcceptUserId" data-type="int" />
<div class="row">
<div class="col-md-3">
<label asp-for="CheckListHeaderDTO.DocumentNumber"></label>
<input asp-for="CheckListHeaderDTO.DocumentNumber" class="form-control" readonly />
<input asp-for="CheckListHeaderDTO.DocumentNumber" class="form-control" readonly />
<span asp-validation-for="CheckListHeaderDTO.DocumentNumber" class="text-danger"></span>
</div>
<div class="col-md-3">
<label asp-for="CheckListHeaderDTO.CheckStatus"></label>
<select asp-for="CheckListHeaderDTO.CheckStatus" class="form-control" asp-items="Model.CheckStatus" readonly></select>
<select asp-for="CheckListHeaderDTO.CheckStatus" class="form-control" asp-items="Model.CheckStatus" readonly data-type="int"></select>
<span asp-validation-for="CheckListHeaderDTO.CheckStatus" class="text-danger"></span>
</div>
</div>
@@ -2,3 +2,4 @@
@using WorkFlowCheck.Web.Helpers
@namespace WorkFlowCheck.Web.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, WorkFlowCheck.Web.Helpers