diff --git a/Areas/Identity/Pages/Account/Login.cshtml b/Areas/Identity/Pages/Account/Login.cshtml index 533512d..fef680b 100644 --- a/Areas/Identity/Pages/Account/Login.cshtml +++ b/Areas/Identity/Pages/Account/Login.cshtml @@ -97,6 +97,10 @@ $(function () { app.mount('#systemLogin'); + + $('.closeModal').on('click', function () { + $('.modal').modal('hide'); + }); }); const app = Vue.createApp({ diff --git a/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs b/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs index df6280f..af6d221 100644 --- a/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs +++ b/Areas/Inventory/Controllers/Admin/InventoryMasterController.cs @@ -10,5 +10,24 @@ namespace PSTW_CentralSystem.Areas.Inventory.Controllers.Admin { return View(); } + + public IActionResult ItemRegistration() + { + return View(); + } + + public IActionResult ProductRegistration() + { + return View(); + } + + public IActionResult SupplierRegistration() + { + return View(); + } + public IActionResult ManifacturerRegistration() + { + return View(); + } } } diff --git a/Areas/Inventory/Controllers/ItemController.cs b/Areas/Inventory/Controllers/ItemMovementController.cs similarity index 60% rename from Areas/Inventory/Controllers/ItemController.cs rename to Areas/Inventory/Controllers/ItemMovementController.cs index 0d02ccc..ba17a0e 100644 --- a/Areas/Inventory/Controllers/ItemController.cs +++ b/Areas/Inventory/Controllers/ItemMovementController.cs @@ -7,7 +7,7 @@ namespace PSTW_CentralSystem.Areas.Inventory.Controllers [Area("Inventory")] //[Authorize(Policy = "RoleModulePolicy")] - public class ItemController : Controller + public class ItemMovementController : Controller { // GET: Inventory public ActionResult Index() @@ -15,15 +15,5 @@ namespace PSTW_CentralSystem.Areas.Inventory.Controllers return View(); } - public IActionResult ItemRegistration() - { - return View(); - } - - public IActionResult ProductRegistration() - { - return View(); - } - } } diff --git a/Areas/Inventory/Views/Item/ItemRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml similarity index 100% rename from Areas/Inventory/Views/Item/ItemRegistration.cshtml rename to Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml diff --git a/Areas/Inventory/Views/Main/ManifacturerRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/ManifacturerRegistration.cshtml similarity index 100% rename from Areas/Inventory/Views/Main/ManifacturerRegistration.cshtml rename to Areas/Inventory/Views/InventoryMaster/ManifacturerRegistration.cshtml diff --git a/Areas/Inventory/Views/Item/ProductRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/ProductRegistration.cshtml similarity index 100% rename from Areas/Inventory/Views/Item/ProductRegistration.cshtml rename to Areas/Inventory/Views/InventoryMaster/ProductRegistration.cshtml diff --git a/Areas/Inventory/Views/Main/SupplierRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml similarity index 100% rename from Areas/Inventory/Views/Main/SupplierRegistration.cshtml rename to Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml diff --git a/Views/Admin/UserAdmin.cshtml b/Views/Admin/UserAdmin.cshtml index 0580b8e..a48609b 100644 --- a/Views/Admin/UserAdmin.cshtml +++ b/Views/Admin/UserAdmin.cshtml @@ -165,7 +165,23 @@ "render": function (data, type, row, meta) { if (data.length > 0) { return data; - } else { + } + else if(row.company == null && row.department == null) { + var thisCol = ` +