@if (ViewBag.UltimasOS != null && ViewBag.UltimasOS.Count > 0)
{
| Número OS |
Cliente |
Data Abertura |
Status |
Valor |
Ações |
@foreach (var os in ViewBag.UltimasOS)
{
| @os.NumeroOS |
@os.Cliente?.Nome |
@os.DataAbertura.ToString("dd/MM/yyyy") |
@if (os.Status == "Aberta")
{
@os.Status
}
else if (os.Status == "Em Andamento")
{
@os.Status
}
else
{
@os.Status
}
|
@os.ValorTotal.ToString("C") |
|
}
}
else
{
Nenhuma ordem de serviço cadastrada ainda.
}