This commit is contained in:
Ed Charbeneau 2020-07-29 11:34:48 -04:00
Родитель 6ddd07c219
Коммит 280f4e0e26
8 изменённых файлов: 178 добавлений и 12 удалений

Просмотреть файл

@ -2,9 +2,9 @@
@page "/manage-employees"
@inject HttpClient Http
@using Telerik.Blazor.Services
@inject ITelerikStringLocalizer Localizer
@inject ITelerikStringLocalizer L
<CardContainer Title="Employees">
<CardContainer Title="@L["Employees"]">
<TelerikGrid Data="employees" Pageable="true" Sortable="true" FilterMode="GridFilterMode.FilterMenu" Resizable="true">
<GridColumns>
<GridColumn Field="@nameof(Employee.ImgId)" Title="" Sortable="false" Width="100px" Filterable="false">
@ -16,10 +16,10 @@
}
</Template>
</GridColumn>
<GridColumn Field="@nameof(Employee.FullName)" Title="Name"></GridColumn>
<GridColumn Field="@nameof(Employee.Address)"></GridColumn>
<GridColumn Field="@nameof(Employee.Phone)"></GridColumn>
<GridColumn Field="Team.TeamName" Title="Team Name">
<GridColumn Field="@nameof(Employee.FullName)" Title="@L["Employee_Grid_Title_FullName"]"></GridColumn>
<GridColumn Field="@nameof(Employee.Address)" Title="@L["Employee_Grid_Title_Address"]"></GridColumn>
<GridColumn Field="@nameof(Employee.Phone)" Title="@L["Employee_Grid_Title_Phone"]"></GridColumn>
<GridColumn Field="Team.TeamName" Title="@L["Employee_Grid_Title_TeamName"]">
<Template>
@{
var e = (Employee)context;
@ -27,12 +27,12 @@
}
</Template>
</GridColumn>
<GridColumn Field="@nameof(Employee.Rating)">
<GridColumn Field="@nameof(Employee.Rating)" Title="@L["Employee_Grid_Title_Rating"]">
<Template>
<Rating Value="((Employee)context).Rating" />
</Template>
</GridColumn>
<GridColumn Field="@nameof(Employee.Budget)">
<GridColumn Field="@nameof(Employee.Budget)" Title="@L["Employee_Grid_Title_Budget"]">
<Template>
@( ((Employee)context).Budget.ToString("C") )
</Template>

Просмотреть файл

@ -1,9 +1,7 @@
@namespace BlazingCoffee.Client.Shared
@inherits LayoutComponentBase
@using BlazingCoffee.Shared.Resources
@using BlazingCoffee.Client.Shared.NavMenu
@inject NavigationManager navigationManger
@inherits LayoutComponentBase
@inject ITelerikStringLocalizer L

63
BlazingCoffee/Shared/Resources/Global.Designer.cs сгенерированный
Просмотреть файл

@ -78,6 +78,69 @@ namespace BlazingCoffee.Shared.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Address.
/// </summary>
public static string Employee_Grid_Title_Address {
get {
return ResourceManager.GetString("Employee_Grid_Title_Address", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Budget.
/// </summary>
public static string Employee_Grid_Title_Budget {
get {
return ResourceManager.GetString("Employee_Grid_Title_Budget", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
public static string Employee_Grid_Title_FullName {
get {
return ResourceManager.GetString("Employee_Grid_Title_FullName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Phone.
/// </summary>
public static string Employee_Grid_Title_Phone {
get {
return ResourceManager.GetString("Employee_Grid_Title_Phone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Rating.
/// </summary>
public static string Employee_Grid_Title_Rating {
get {
return ResourceManager.GetString("Employee_Grid_Title_Rating", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Team Name.
/// </summary>
public static string Employee_Grid_Title_TeamName {
get {
return ResourceManager.GetString("Employee_Grid_Title_TeamName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employees.
/// </summary>
public static string Employees {
get {
return ResourceManager.GetString("Employees", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Group.
/// </summary>

Просмотреть файл

@ -189,4 +189,25 @@
<data name="MoreInfo" xml:space="preserve">
<value>Още информация...</value>
</data>
<data name="Employees" xml:space="preserve">
<value>Служители</value>
</data>
<data name="Employee_Grid_Title_FullName" xml:space="preserve">
<value>Име</value>
</data>
<data name="Employee_Grid_Title_Address" xml:space="preserve">
<value>Адрес</value>
</data>
<data name="Employee_Grid_Title_Phone" xml:space="preserve">
<value>Телефон</value>
</data>
<data name="Employee_Grid_Title_TeamName" xml:space="preserve">
<value>Име на екип</value>
</data>
<data name="Employee_Grid_Title_Rating" xml:space="preserve">
<value>Оценка</value>
</data>
<data name="Employee_Grid_Title_Budget" xml:space="preserve">
<value>Бюджет</value>
</data>
</root>

Просмотреть файл

@ -189,4 +189,25 @@
<data name="MoreInfo" xml:space="preserve">
<value>Weitere Informationen ...</value>
</data>
<data name="Employees" xml:space="preserve">
<value>Mitarbeiter</value>
</data>
<data name="Employee_Grid_Title_FullName" xml:space="preserve">
<value>Name</value>
</data>
<data name="Employee_Grid_Title_Address" xml:space="preserve">
<value>Adresse</value>
</data>
<data name="Employee_Grid_Title_Phone" xml:space="preserve">
<value>Telefon</value>
</data>
<data name="Employee_Grid_Title_TeamName" xml:space="preserve">
<value>Teamname</value>
</data>
<data name="Employee_Grid_Title_Rating" xml:space="preserve">
<value>Bewertung</value>
</data>
<data name="Employee_Grid_Title_Budget" xml:space="preserve">
<value>Budget</value>
</data>
</root>

Просмотреть файл

@ -189,4 +189,25 @@
<data name="MoreInfo" xml:space="preserve">
<value>Más información ...</value>
</data>
<data name="Employees" xml:space="preserve">
<value>Empleados</value>
</data>
<data name="Employee_Grid_Title_FullName" xml:space="preserve">
<value>Nombre</value>
</data>
<data name="Employee_Grid_Title_Address" xml:space="preserve">
<value>Dirección</value>
</data>
<data name="Employee_Grid_Title_Phone" xml:space="preserve">
<value>Teléfono</value>
</data>
<data name="Employee_Grid_Title_TeamName" xml:space="preserve">
<value>Nombre del equipo</value>
</data>
<data name="Employee_Grid_Title_Rating" xml:space="preserve">
<value>Clasificación</value>
</data>
<data name="Employee_Grid_Title_Budget" xml:space="preserve">
<value>Presupuesto</value>
</data>
</root>

Просмотреть файл

@ -169,4 +169,25 @@
<data name="MoreInfo" xml:space="preserve">
<value>Meer informatie ...</value>
</data>
<data name="Employees" xml:space="preserve">
<value>Werknemers</value>
</data>
<data name="Employee_Grid_Title_FullName" xml:space="preserve">
<value>Naa&amp;m:</value>
</data>
<data name="Employee_Grid_Title_Address" xml:space="preserve">
<value>Adres</value>
</data>
<data name="Employee_Grid_Title_Phone" xml:space="preserve">
<value>Telefoon</value>
</data>
<data name="Employee_Grid_Title_TeamName" xml:space="preserve">
<value>Teamnaam</value>
</data>
<data name="Employee_Grid_Title_Rating" xml:space="preserve">
<value>Beoordeling</value>
</data>
<data name="Employee_Grid_Title_Budget" xml:space="preserve">
<value>Budget</value>
</data>
</root>

Просмотреть файл

@ -189,4 +189,25 @@
<data name="MoreInfo" xml:space="preserve">
<value>More Info</value>
</data>
<data name="Employees" xml:space="preserve">
<value>Employees</value>
</data>
<data name="Employee_Grid_Title_FullName" xml:space="preserve">
<value>Name</value>
</data>
<data name="Employee_Grid_Title_Address" xml:space="preserve">
<value>Address</value>
</data>
<data name="Employee_Grid_Title_Phone" xml:space="preserve">
<value>Phone</value>
</data>
<data name="Employee_Grid_Title_TeamName" xml:space="preserve">
<value>Team Name</value>
</data>
<data name="Employee_Grid_Title_Rating" xml:space="preserve">
<value>Rating</value>
</data>
<data name="Employee_Grid_Title_Budget" xml:space="preserve">
<value>Budget</value>
</data>
</root>