NonInventPurchasingSystem/CPRNIMS.WebApps/ViewComponents/Inventory/InventoryTabPageViewComponent.cs
2026-06-18 16:51:31 +08:00

22 lines
865 B
C#

using Microsoft.AspNetCore.Mvc;
namespace CPRNIMS.WebApps.ViewComponents.Inventory
{
public class InventoryTabPageViewComponent : ViewComponent
{
public IViewComponentResult Invoke(int InventoryTabPageId)
{
string viewName = InventoryTabPageId switch
{
1 => "~/Views/Components/Inventory/TabPage/Inventory.cshtml",
2 => "~/Views/Components/Inventory/TabPage/RIS.cshtml",
3 => "~/Views/Components/Inventory/TabPage/MRS.cshtml",
4 => "~/Views/Components/Inventory/TabPage/Reports/InventorySummaryReport.cshtml",
5 => "~/Views/Components/Inventory/TabPage/Reports/RISReport.cshtml",
_ => "~/Views/Components/Inventory/TabPage/Reports/MRSReport.cshtml"
};
return View(viewName);
}
}
}