diff --git a/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs b/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs
index 69301e1..ac4d3a1 100644
--- a/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs
+++ b/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs
@@ -30,5 +30,10 @@ namespace PSTW_CentralSystem.Areas.Inventory.Controllers.Admin
{
return View();
}
+
+ public IActionResult StationRegistration()
+ {
+ return View();
+ }
}
}
diff --git a/Areas/Inventory/Models/RequestModel.cs b/Areas/Inventory/Models/RequestModel.cs
new file mode 100644
index 0000000..3480ed6
--- /dev/null
+++ b/Areas/Inventory/Models/RequestModel.cs
@@ -0,0 +1,20 @@
+using PSTW_CentralSystem.Models;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+namespace PSTW_CentralSystem.Areas.Inventory.Models
+{
+ public class RequestModel
+ {
+ [Key]
+ public int requestId { get; set; }
+ public int DepartmentId { get; set; }
+ [ForeignKey("DepartmentId")]
+ public virtual ItemModel? Department { get; set; }
+ [ForeignKey("ItemID")]
+ public string? remark { get; set; }
+ public string? status { get; set; }
+ public DateTime requestDate { get; set; }
+ public DateTime approvalDate { get; set; }
+
+ }
+}
diff --git a/Areas/Inventory/Views/InventoryMaster/StationRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/StationRegistration.cshtml
new file mode 100644
index 0000000..5988894
--- /dev/null
+++ b/Areas/Inventory/Views/InventoryMaster/StationRegistration.cshtml
@@ -0,0 +1,298 @@
+@{
+ ViewData["Title"] = "Station";
+ Layout = "~/Views/Shared/_Layout.cshtml";
+}
+
+@await Html.PartialAsync("~/Areas/Inventory/Views/_InventoryPartial.cshtml");
+
+@section Scripts {
+ @{
+ await Html.RenderPartialAsync("_ValidationScriptsPartial");
+ }
+
+}
\ No newline at end of file
diff --git a/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml
index 82e1712..422308b 100644
--- a/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml
+++ b/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml
@@ -107,7 +107,7 @@
supplierAddress : null,
supplierPhoneNo : null,
supplierPIC : null,
- suuppliers: null,
+ suppliers: null,
supplierDatatable: null,
gender: ["Male", "Female", "Helicopter"],
registerSupplierForm: false
diff --git a/Controllers/API/IdentityAPI.cs b/Controllers/API/IdentityAPI.cs
index 77d003c..f62d5ae 100644
--- a/Controllers/API/IdentityAPI.cs
+++ b/Controllers/API/IdentityAPI.cs
@@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using PSTW_CentralSystem.DBContext;
using PSTW_CentralSystem.Models;
+using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
@@ -63,6 +64,45 @@ namespace PSTW_CentralSystem.Controllers.API
return StatusCode(500, $"An error occurred: {ex.Message}");
}
}
+
+ [HttpPost("GetTechnicianUserInformation")]
+ public async Task GetTechnicianUserInformation()
+ {
+ try
+ {
+ var users = await _identityDbContext.Users
+ .Include(u => u.Department)
+ .ToListAsync(); // Retrieve all users with department info
+
+ var technicianUsers = new List