diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointEditPage.cshtml index 7b748a1..8ac1e60 100644 --- a/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointEditPage.cshtml +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointEditPage.cshtml @@ -97,7 +97,7 @@ $('#tbCheckPointsEditPage').on('click', '.edit-btn', function () { const row = table.row($(this).closest('tr')).data(); - + window.location.href = `@Url.Page("./CheckListTemplateRowEditPage")?id=${row.id}`; }); $('#tbCheckPointsEditPage').on('click', '.delete-btn', function () diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointsPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointsPage.cshtml index 91b8ea9..f4ace41 100644 --- a/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointsPage.cshtml +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/CheckPoints/CheckPointsPage.cshtml @@ -1,5 +1,7 @@ @page @model WorkFlowCheck.Web.Pages.BaseStock.CheckPoints.CheckPointsPageModel +@using Microsoft.AspNetCore.Antiforgery +@inject IAntiforgery Antiforgery @{ ViewData["Title"] = "Ellenőrzési pontok"; } diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml new file mode 100644 index 0000000..b487a02 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.BaseStock.Equipments.EquipmentEditPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml.cs new file mode 100644 index 0000000..9b66a43 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentEditPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.BaseStock.Equipments +{ + public class EquipmentEditPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml new file mode 100644 index 0000000..927e952 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml @@ -0,0 +1,84 @@ +@page +@model WorkFlowCheck.Web.Pages.BaseStock.Equipments.EquipmentsPageModel +@{ + ViewData["Title"] = "Berendezések"; +} +

@ViewData["Title"]

+ +
+
+ +
+ + + + + + + + + + + + + + + +
IDShort NameAction
IDShort NameAction
+
+ +@section Scripts { + +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml.cs new file mode 100644 index 0000000..f7b4fff --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using WorkFlowCheck.Web.Services.Interfaces; + +namespace WorkFlowCheck.Web.Pages.BaseStock.Equipments +{ + [Authorize] + public class EquipmentsPageModel : PageModel + { + private readonly ILogger _logger; + private readonly IBaseStockService _baseStockService; + public EquipmentsPageModel(ILogger logger, IBaseStockService baseStockService) + { + _logger = logger; + _baseStockService = baseStockService; + } + public async Task OnGet() + { + } + public async Task OnGetLoadEquipments() + { + var results = await _baseStockService.GetAllEquipments(); + return new JsonResult(new { data = results }); + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml new file mode 100644 index 0000000..aebff94 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.BaseStock.Locations.LocationEditPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml.cs new file mode 100644 index 0000000..eaa730d --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationEditPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.BaseStock.Locations +{ + public class LocationEditPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml new file mode 100644 index 0000000..5663bbd --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml @@ -0,0 +1,84 @@ +@page +@model WorkFlowCheck.Web.Pages.BaseStock.Locations.LocationsPageModel +@{ + ViewData["Title"] = "Lokációk"; +} +

@ViewData["Title"]

+ +
+
+ +
+ + + + + + + + + + + + + + + +
IDFull nameAction
IDFull nameAction
+
+ +@section Scripts { + +} diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml.cs new file mode 100644 index 0000000..c2bdb1a --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Locations/LocationsPage.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using WorkFlowCheck.Web.Services.Interfaces; + +namespace WorkFlowCheck.Web.Pages.BaseStock.Locations +{ + [Authorize] + public class LocationsPageModel : PageModel + { + private readonly ILogger _logger; + private readonly IBaseStockService _baseStockService; + public LocationsPageModel(ILogger logger, IBaseStockService baseStockService) + { + _logger = logger; + _baseStockService = baseStockService; + } + public async Task OnGet() + { + } + public async Task OnGetLoadLocations() + { + var results = await _baseStockService.GetAllLocations(); + return new JsonResult(new { data = results }); + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml new file mode 100644 index 0000000..feae9e5 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckList.CheckListHeader.CheckListHeaderEditPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml.cs new file mode 100644 index 0000000..29fc490 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderEditPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader +{ + public class CheckListHeaderEditPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml new file mode 100644 index 0000000..1f4debd --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckList.CheckListHeader.CheckListHeaderPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml.cs new file mode 100644 index 0000000..32e6303 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListHeader/CheckListHeaderPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader +{ + public class CheckListHeaderPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml new file mode 100644 index 0000000..0fb9848 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckList.CheckListRow.CheckListRowEditPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml.cs new file mode 100644 index 0000000..5287b8a --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckList/CheckListRow/CheckListRowEditPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.CheckList.CheckListRow +{ + public class CheckListRowEditPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml new file mode 100644 index 0000000..835579d --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateHeader.CheckListTemplateHeaderEditPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml.cs new file mode 100644 index 0000000..fb1754f --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderEditPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateHeader +{ + public class CheckListTemplateHeaderEditPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml new file mode 100644 index 0000000..561323a --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml @@ -0,0 +1,4 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateHeader.CheckListTemplateHeaderPageModel +@{ +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml.cs new file mode 100644 index 0000000..e49f629 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateHeader/CheckListTemplateHeaderPage.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateHeader +{ + public class CheckListTemplateHeaderPageModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml new file mode 100644 index 0000000..6279819 --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml @@ -0,0 +1,74 @@ +@page +@model WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateRows.CheckListTemplateRowEditPageModel +@using Microsoft.AspNetCore.Antiforgery +@inject IAntiforgery Antiforgery +@{ + ViewData["Title"] = "Ellenőrzési pont"; + var checklisttemplaterowId = Model.CheckListTemplateRow.Id; + var url = Url.Page("./CheckListTemplateRowEditPage", "LoadCheckListTemplateRows", new { id = checklisttemplaterowId }); + var urlPost = Url.Page("./CheckListTemplateRowEditPage", "Save"); +} +

@ViewData["Title"]

+ + + + +
+
+ + + +
+ + + +
+
+ + + +
+ +
+ +
+
+
+ +@section Scripts { + +} diff --git a/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml.cs b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml.cs new file mode 100644 index 0000000..fd9507d --- /dev/null +++ b/src/WorkFlowCheck.Web/Pages/CheckListTemplate/CheckListTemplateRows/CheckListTemplateRowEditPage.cshtml.cs @@ -0,0 +1,35 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using Microsoft.AspNetCore.Mvc.Rendering; +using WorkFlowCheck.Common.DTO; +using WorkFlowCheck.Web.Services.Interfaces; + +namespace WorkFlowCheck.Web.Pages.CheckListTemplate.CheckListTemplateRows +{ + public class CheckListTemplateRowEditPageModel : PageModel + { + private readonly ILogger _logger; + private readonly IBaseStockService _baseStockService; + + + [BindProperty] + public CheckListTemplateRowDTO CheckListTemplateRow { get; set; } + + [BindProperty] + public List AnswerTypes { get; set; } = + new[] { "I-N", "P", "SI-N", "I-SN", "PI-N", "I-PN", "V" } + .Select(x => new SelectListItem { Value = x, Text = x }) + .ToList(); + + public CheckListTemplateRowEditPageModel(ILogger logger, IBaseStockService baseStockService) + { + _baseStockService = baseStockService; + _logger = logger; + } + + public async Task OnGet(int id) + { + CheckListTemplateRow = await _baseStockService.GetCheckListTemplateRow(id); + } + } +} diff --git a/src/WorkFlowCheck.Web/Pages/Shared/_Layout.cshtml b/src/WorkFlowCheck.Web/Pages/Shared/_Layout.cshtml index 82f5fbb..dd70680 100644 --- a/src/WorkFlowCheck.Web/Pages/Shared/_Layout.cshtml +++ b/src/WorkFlowCheck.Web/Pages/Shared/_Layout.cshtml @@ -29,8 +29,8 @@