@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
{
        new NavigationtabViewModel(Loc.WorkOrderList, Url.Action("Index", "Manufacturing", new { type = ViewBag.ProdType }), 
            Html.IsActive("Index", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),

        new NavigationtabViewModel(Loc.WOProcessing_IssueMat, Url.Action("IssueMat", "Manufacturing", new { key = Model.AcKey, type = ViewBag.ProdType }),
            Html.IsActive("IssueMat", "Manufacturing"), 
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),

        new NavigationtabViewModel(Loc.WOProcessing_CompletedWork, Url.Action("CompletWork", "Manufacturing", new { key = Model.AcKey, type = ViewBag.ProdType }),
            Html.IsActive("CompletWork", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),
    }
})


