Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e141d868

Přidáno uživatelem Dominik Chlouba před téměř 4 roky(ů)

Language mutations and some other fixes

Zobrazit rozdíly:

src/Core/Application/Leuze.Core.Application.UI/Areas/Identity/Pages/Account/Login.cshtml
161 161

  
162 162
<form id="account" method="post" class="login_form">
163 163
    <div class="login_row">
164
        <label class="login_label" asp-for="Input.Email">@Model.T["UserName"]</label>
164
        <label class="login_label" asp-for="Input.Email">@Model.T["Email"]</label>
165 165
        <input class="login_input" type="email" asp-for="Input.Email" />
166 166
    </div>
167 167
    <div class="login_row">
168
        <label class="login_label" asp-for="Input.Password">Heslo</label>
168
        <label class="login_label" asp-for="Input.Password">@Model.T["Password"]</label>
169 169
        <input class="login_input" type="password" asp-for="Input.Password" />
170 170
    </div>
171 171
    <p>@Model.ErrorMessage</p>
172
    <button type="submit" class="login_button">Přihlásit se</button>
172
    <button type="submit" class="login_button">@Model.T["Login"]</button>
173 173
    <div class="login_or">
174
        <div class="login_orText">nebo</div>
174
        <div class="login_orText">@Model.T["Or"]</div>
175 175
    </div>
176 176
    <div class="login_adWrapper">
177 177
        <a href="/MicrosoftIdentity/Account/SignIn">
src/Core/Application/Leuze.Core.Application.UI/Components/Login/Form.razor
1 1
@inject IMediator _mediator
2 2
@inject NavigationManager _navManager
3
@inject IStringLocalizer<Form> T
3 4

  
4 5
<Styled @bind-Classname="@_form">
5 6
    width: 300px;
......
102 103

  
103 104
<form @onsubmit="Login" class="@_form">
104 105
    <div class="@_row">
105
        <label class="@_label">Přihlašovací jméno</label>
106
        <label class="@_label">@T["Email"]</label>
106 107
        <input class="@_input" type="email" @bind-value="Email" />
107 108
    </div>
108 109
    <div class="@_row">
109
        <label class="@_label">Heslo</label>
110
        <label class="@_label">@T["Password"]</label>
110 111
        <input class="@_input" type="password" @bind-value="Password" />
111 112
    </div>
112 113
    <p>@Error</p>
113
    <button @onclick="Login" class="@_button" @onkeypress:preventDefault>Přihlásit se</button>
114
    <button @onclick="Login" class="@_button" @onkeypress:preventDefault>@T["Login"]</button>
114 115
    <div class="@_or">
115
        <div class="@_orText">nebo</div>
116
        <div class="@_orText">@T["Or"]</div>
116 117
    </div>
117 118
    <div class="@_adWrapper">
118 119
        <a href="MicrosoftIdentity/Account/SignIn">
src/Core/Application/Leuze.Core.Application.UI/Leuze.Core.Application.UI.csproj
23 23

  
24 24
  <ItemGroup>
25 25
    <PackageReference Include="Blazored.Toast" Version="3.1.2" />
26
    <PackageReference Include="Blazored.Typeahead" Version="4.6.0" />
26 27
    <PackageReference Include="BlazorStyled" Version="3.1.0" />
27 28
    <PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
28 29
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" />
src/Core/Application/Leuze.Core.Application.UI/Pages/Login.razor
1 1
@page "/Identity/Account/ResetPassword"
2 2
@attribute [AllowAnonymous]
3 3
@layout EmptyLayout
4
@inject IStringLocalizer<Login> T
5 4

  
6 5
<Styled>
7 6
    @@media (max-width: 1400px)  {
......
13 12
<LeuzeLogo />
14 13
<RobotIcon />
15 14
<Form />
16
@T["test"]
17 15
@code {
18 16

  
19 17
}
src/Core/Application/Leuze.Core.Application.UI/Pages/Testing/User.razor
1
@page "/Testing"
2
@attribute [AllowAnonymous]
3
@layout EmptyLayout
4
@inject IMediator _mediator
5
<h3>Testovací GUI pro tvorbu lokálních uživatelů</h3>
6

  
7
<button @onclick="CreateUser">Vytvořit uživatele test@test.cz</button>
8
<br/>
9
Token: @Token
10
<br/>
11
<button @onclick="SetPassword">Nastavit heslo Test123*</button>
12

  
13
@code {
14

  
15
    protected string Token { get; set; }
16

  
17
    protected async Task CreateUser()
18
    {
19
        var result = await _mediator.Send(new CreateLocalUser.Command("Testovací Uživatel", "test@test.cz", null!, new List<Guid>()));
20
        Token = result.Result!.Token;
21
    }
22

  
23
    protected async Task SetPassword()
24
    {
25
        await _mediator.Send(new ResetLocalUserPassword.Command("test@test.cz", Token, "Test123*"));
26
    }
27

  
28
}
src/Core/Application/Leuze.Core.Application.UI/Pages/Users/Components/UserAside.razor
1 1
@inject IMediator _mediator
2 2
@inject IToastService toastService
3
@inject IStringLocalizer<UserAside> T
3 4

  
4 5
<aside class="@_aside side_dialog">
5 6
    <div class="dialog_header">
6
        <div>Nový uživatel</div>
7
        <div>
8
            @if (UserId != default(Guid))
9
            {
10
                <span>@T["EditUser"]</span>
11
            }
12
            else
13
            {
14
                <span>@T["NewUser"]</span>
15
            }
16
            </div>
7 17
        <button @onclick="Close" type="button">X</button>
8 18
    </div>
9 19
    <div class="dialog_body">
10 20
        @if (UserId != default(Guid) && Loading)
11 21
        {
12
            <div>Načítám uživatele</div>
22
        <div>@T["Loading"]</div>
13 23
        }
14 24
        else
15 25
        {
16 26
            <div class="input_row">
17
                <label class="input_label">Jméno a příjmení<span style="color:#ff0000">*</span></label>
18
                <input type="text" placeholder="Jméno a příjmení" disabled="@IsAdUser" @bind-value="Name" />
27
                <label class="input_label">@T["Name"]<span style="color:#ff0000">*</span></label>
28
                <input type="text" placeholder="" disabled="@IsAdUser" @bind-value="Name" />
19 29
            </div>
20 30
            <div class="input_row">
21
                <label class="input_label">E-mailová adresa<span style="color:#ff0000">*</span></label>
22
                <input type="email" placeholder="E-mail" @bind-value="Email" />
31
                <label class="input_label">@T["Email"]<span style="color:#ff0000">*</span></label>
32
                <input type="email" placeholder="" @bind-value="Email" />
23 33
            </div>
24
            <div class="section_title">Role<span style="color:#ff0000">*</span></div>
34
            <div class="section_title">@T["Role"]<span style="color:#ff0000">*</span></div>
25 35
            <div class="input_row">
26 36
                @if (Roles is null)
27 37
                {
28
                    <div>Načítám role</div>
38
                <div>@T["LoadingRoles"]</div>
29 39
                }
30 40
                else
31 41
                {
......
39 49
                    }
40 50
                    @if (Roles.Count == 0)
41 51
                    {
42
                        <div>Nenalezeny žádné role</div>
52
                        <div>@T["NoRoles"]</div>
43 53
                    }
44 54
                }
45 55
            </div>
46
            <div class="section_title">Nadřízený</div>
56
            <div class="section_title">@T["Senior"]</div>
47 57
            <div class="input_row">
48 58
                @if (Users is null)
49 59
                {
50
                    <div>Načítám uživatele</div>
60
                    <div>@T["LoadingUsers"]</div>
61
                }
62
                else if (Role == default(Guid))
63
                {
64
                    <div>@T["FirstRole"]</div>
51 65
                }
52 66
                else
53 67
                {
54 68
                    <select @onchange="(e) => SetUser((e.Value != null && (string)e.Value != string.Empty) ? Guid.Parse((string)e.Value) : default(Guid))">
55
                        <option value="" selected="@(Senior == default(Guid))">Vyberte uživatele</option>
69
                        <option value="" selected="@(Senior == default(Guid))">@T["SelectUser"]</option>
56 70

  
57 71
                        @foreach (var user in Users)
58 72
                        {
......
68 82
        }
69 83
    </div>
70 84
    <div class="button_container">
71
        <button @onclick="FireAction" disabled="@(IsValidModel() || Sent)">@(UserId == default(Guid) ? "Vytvořit" : "Uložit")</button>
72
        <button @onclick="Close">Zrušit</button>
85
        <button @onclick="FireAction" disabled="@(IsValidModel() || Sent)">@(UserId == default(Guid) ? T["Create"] : T["Save"])</button>
86
        <button @onclick="Close">@T["Cancel"]</button>
73 87
    </div>
74 88
</aside>
75 89

  
......
298 312

  
299 313
    private async Task FetchUsers()
300 314
    {
301
        var result = await _mediator.Send(new GetUsersList.Query(false));
315
        var result = await _mediator.Send(new GetUsersList.Query(false, Role));
302 316
        if (result.IsSuccess && result.Result is not null)
303 317
        {
304 318
            if (UserId == default(Guid)) Users = result.Result.List;
......
312 326
        if (result.IsSuccess && result.Result is not null) Roles = result.Result.List;
313 327
    }
314 328

  
315
    private void SetRole(Guid id) => Role = id;
329
    private void SetRole(Guid id) 
330
    {
331
        Role = id;
332
        FetchUsers().Wait();
333
    }
316 334

  
317 335
    private void SetUser(Guid id) => Senior = id;
318 336

  
src/Core/Application/Leuze.Core.Application.UI/Pages/Users/List.razor
2 2
@attribute [Authorize]
3 3
@layout MainLayout
4 4
@inject IMediator _mediator
5
@inject IStringLocalizer<List> T
6

  
5 7
<div class="section_header">
6
    <h2>Správa uživatelů</h2>
8
    <h2>@T["Title"]</h2>
7 9
    <button type="button" @onclick="() => SetUserAsideId(default(Guid))">
8 10
        <img src="/Resources/Icons/plus.svg" class="plus_icon" />
9
        <span>Přidat uživatele</span>
11
        <span>@T["AddUser"]</span>
10 12
    </button>
11 13
</div>
12 14
@if (Users is not null)
13 15
{
14 16
    <table class="actions" style="width:100%">
15 17
        <tr>
16
            <th>Jméno</th>
17
            <th>Email</th>
18
            <th>Role</th>
19
            <th>Typ</th>
20
            <th>Akce</th>
18
            <th>@T["Name"]</th>
19
            <th>@T["Email"]</th>
20
            <th>@T["Role"]</th>
21
            <th>@T["Type"]</th>
22
            <th>@T["Actions"]</th>
21 23
        </tr>
22 24
        @foreach (var user in Users)
23 25
        {
24
    <tr>
25
        <td>@user.Name</td>
26
        <td>@user.Email</td>
27
        <td>@user.Role</td>
28
        <td>@(user.IsAdUser ? "AD" : "Lokální")</td>
29
        <td>
30
            <div @onclick="() => SetUserAsideId(user.Id)">Upravit</div>
31
        </td>
32
    </tr>
26
            <tr>
27
                <td>@user.Name</td>
28
                <td>@user.Email</td>
29
                <td>@user.Role</td>
30
                <td>@(user.IsAdUser ? "AD" : "Lokální")</td>
31
                <td>
32
                    <div @onclick="() => SetUserAsideId(user.Id)">@T["Edit"]</div>
33
                </td>
34
            </tr>
33 35
        }
34 36
    </table>
35 37
    @if (Users.Count > 0)
36 38
    {
37
        <div class="pagination">
39
        <!--<div class="pagination">
38 40
            <div class="left">
39
                <button class="pagination_button"><img class="pagination_icon" src="/Resources/Icons/chevron-double-left.svg"/></button>
40
                <button class="pagination_button"><img class="pagination_icon" src="/Resources/Icons/chevron-left.svg" /></button>
41
                <button class="pagination_button" @onclick="FirstPage"><img class="pagination_icon" src="/Resources/Icons/chevron-double-left.svg" /></button>
42
                <button class="pagination_button" @onclick="PrevPage"><img class="pagination_icon" src="/Resources/Icons/chevron-left.svg" /></button>
41 43
                <input type="number" @bind-value="PageNumber" />
42
                <button class="pagination_button"><img class="pagination_icon" src="/Resources/Icons/chevron-right.svg" /></button>
43
                <button class="pagination_button"><img class="pagination_icon" src="/Resources/Icons/chevron-double-right.svg" /></button>
44
                <button class="pagination_button" @onclick="NextPage"><img class="pagination_icon" src="/Resources/Icons/chevron-right.svg" /></button>
45
                <button class="pagination_button" @onclick="LastPage"><img class="pagination_icon" src="/Resources/Icons/chevron-double-right.svg" /></button>
44 46
            </div>
45
            <div class="right">Zobrazeno <b>@Users.Count z @Total</b></div>
46
        </div>
47
            <div class="right">@T["Show"] <b>@Users.Count @T["From"] @Total</b></div>
48
        </div>-->
47 49
    }
48 50
}
49 51
else
50 52
{
51
    <div>Loading...</div>
53
<div>@T["Loading"]</div>
52 54
}
53
<UserAside Show="ShowUserAside" ToggleUserAside="@ToggleUserAside" UserId="UserAsideId" RefetchUsers="FetchUsers"/>
55
<UserAside Show="ShowUserAside" ToggleUserAside="@ToggleUserAside" UserId="UserAsideId" RefetchUsers="FetchUsers" />
54 56

  
55 57
<Styled>
56 58
    .section_header {
......
162 164

  
163 165
    private int PageNumber { get; set; } = 1;
164 166

  
165
    private int PageSize { get; set; } = 12;
167
    private int PageSize { get; set; } = 100;
166 168

  
167 169
    private int Total { get; set; } = 0;
168 170

  
src/Core/Application/Leuze.Core.Application.UI/Pages/_Host.cshtml
15 15
    <title>Leuze</title>
16 16
    <base href="~/" />
17 17
    <link href="css/site.css" rel="stylesheet" />
18
    <link href="_content/Blazored.Typeahead/blazored-typeahead.css" rel="stylesheet" />
18 19
    <link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />
20
    <script src="_content/Blazored.Typeahead/blazored-typeahead.js"></script>
19 21
    <link href="Leuze.App.styles.css" rel="stylesheet" />
20 22
</head>
21 23
<body>
src/Core/Application/Leuze.Core.Application.UI/Resources/Areas/Pages/Account/LoginModel.cs-CZ.resx
117 117
  <resheader name="writer">
118 118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 119
  </resheader>
120
  <data name="UserName" xml:space="preserve">
121
    <value>Přihlašovací jméno 123</value>
120
  <data name="Email" xml:space="preserve">
121
    <value>E-mailová adresa</value>
122
  </data>
123
  <data name="Login" xml:space="preserve">
124
    <value>Přihlásit se</value>
125
  </data>
126
  <data name="Or" xml:space="preserve">
127
    <value>nebo</value>
128
  </data>
129
  <data name="Password" xml:space="preserve">
130
    <value>Heslo</value>
122 131
  </data>
123 132
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Components/Login/Form.cs-CZ.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
    <xsd:element name="root" msdata:IsDataSet="true">
65
      <xsd:complexType>
66
        <xsd:choice maxOccurs="unbounded">
67
          <xsd:element name="metadata">
68
            <xsd:complexType>
69
              <xsd:sequence>
70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
              </xsd:sequence>
72
              <xsd:attribute name="name" use="required" type="xsd:string" />
73
              <xsd:attribute name="type" type="xsd:string" />
74
              <xsd:attribute name="mimetype" type="xsd:string" />
75
              <xsd:attribute ref="xml:space" />
76
            </xsd:complexType>
77
          </xsd:element>
78
          <xsd:element name="assembly">
79
            <xsd:complexType>
80
              <xsd:attribute name="alias" type="xsd:string" />
81
              <xsd:attribute name="name" type="xsd:string" />
82
            </xsd:complexType>
83
          </xsd:element>
84
          <xsd:element name="data">
85
            <xsd:complexType>
86
              <xsd:sequence>
87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
              </xsd:sequence>
90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
              <xsd:attribute ref="xml:space" />
94
            </xsd:complexType>
95
          </xsd:element>
96
          <xsd:element name="resheader">
97
            <xsd:complexType>
98
              <xsd:sequence>
99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
              </xsd:sequence>
101
              <xsd:attribute name="name" type="xsd:string" use="required" />
102
            </xsd:complexType>
103
          </xsd:element>
104
        </xsd:choice>
105
      </xsd:complexType>
106
    </xsd:element>
107
  </xsd:schema>
108
  <resheader name="resmimetype">
109
    <value>text/microsoft-resx</value>
110
  </resheader>
111
  <resheader name="version">
112
    <value>2.0</value>
113
  </resheader>
114
  <resheader name="reader">
115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
  <resheader name="writer">
118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
  </resheader>
120
  <data name="Email" xml:space="preserve">
121
    <value>E-mailová adresa</value>
122
  </data>
123
  <data name="Login" xml:space="preserve">
124
    <value>Přihlásit se</value>
125
  </data>
126
  <data name="Or" xml:space="preserve">
127
    <value>nebo</value>
128
  </data>
129
  <data name="Password" xml:space="preserve">
130
    <value>Heslo</value>
131
  </data>
132
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Components/Login/Form.de-DE.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
	<!-- 
4
		Microsoft ResX Schema
5

  
6
		Version 1.3
7

  
8
		The primary goals of this format is to allow a simple XML format 
9
		that is mostly human readable. The generation and parsing of the 
10
		various data types are done through the TypeConverter classes 
11
		associated with the data types.
12

  
13
		Example:
14

  
15
		... ado.net/XML headers & schema ...
16
		<resheader name="resmimetype">text/microsoft-resx</resheader>
17
		<resheader name="version">1.3</resheader>
18
		<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
		<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
		<data name="Name1">this is my long string</data>
21
		<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
		<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
			[base64 mime encoded serialized .NET Framework object]
24
		</data>
25
		<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
			[base64 mime encoded string representing a byte array form of the .NET Framework object]
27
		</data>
28

  
29
		There are any number of "resheader" rows that contain simple 
30
		name/value pairs.
31

  
32
		Each data row contains a name, and value. The row also contains a 
33
		type or mimetype. Type corresponds to a .NET class that support 
34
		text/value conversion through the TypeConverter architecture. 
35
		Classes that don't support this are serialized and stored with the 
36
		mimetype set.
37

  
38
		The mimetype is used for serialized objects, and tells the 
39
		ResXResourceReader how to depersist the object. This is currently not 
40
		extensible. For a given mimetype the value must be set accordingly:
41

  
42
		Note - application/x-microsoft.net.object.binary.base64 is the format 
43
		that the ResXResourceWriter will generate, however the reader can 
44
		read any of the formats listed below.
45

  
46
		mimetype: application/x-microsoft.net.object.binary.base64
47
		value   : The object must be serialized with 
48
			: System.Serialization.Formatters.Binary.BinaryFormatter
49
			: and then encoded with base64 encoding.
50

  
51
		mimetype: application/x-microsoft.net.object.soap.base64
52
		value   : The object must be serialized with 
53
			: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54
			: and then encoded with base64 encoding.
55

  
56
		mimetype: application/x-microsoft.net.object.bytearray.base64
57
		value   : The object must be serialized into a byte array 
58
			: using a System.ComponentModel.TypeConverter
59
			: and then encoded with base64 encoding.
60
	-->
61
	
62
	<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
		<xsd:element name="root" msdata:IsDataSet="true">
64
			<xsd:complexType>
65
				<xsd:choice maxOccurs="unbounded">
66
					<xsd:element name="data">
67
						<xsd:complexType>
68
							<xsd:sequence>
69
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
70
								<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
71
							</xsd:sequence>
72
							<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
73
							<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
74
							<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
75
						</xsd:complexType>
76
					</xsd:element>
77
					<xsd:element name="resheader">
78
						<xsd:complexType>
79
							<xsd:sequence>
80
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
81
							</xsd:sequence>
82
							<xsd:attribute name="name" type="xsd:string" use="required" />
83
						</xsd:complexType>
84
					</xsd:element>
85
				</xsd:choice>
86
			</xsd:complexType>
87
		</xsd:element>
88
	</xsd:schema>
89
	<resheader name="resmimetype">
90
		<value>text/microsoft-resx</value>
91
	</resheader>
92
	<resheader name="version">
93
		<value>1.3</value>
94
	</resheader>
95
	<resheader name="reader">
96
		<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97
	</resheader>
98
	<resheader name="writer">
99
		<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100
	</resheader>
101
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Pages/Users/Components/UserAside.cs-CZ.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
    <xsd:element name="root" msdata:IsDataSet="true">
65
      <xsd:complexType>
66
        <xsd:choice maxOccurs="unbounded">
67
          <xsd:element name="metadata">
68
            <xsd:complexType>
69
              <xsd:sequence>
70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
              </xsd:sequence>
72
              <xsd:attribute name="name" use="required" type="xsd:string" />
73
              <xsd:attribute name="type" type="xsd:string" />
74
              <xsd:attribute name="mimetype" type="xsd:string" />
75
              <xsd:attribute ref="xml:space" />
76
            </xsd:complexType>
77
          </xsd:element>
78
          <xsd:element name="assembly">
79
            <xsd:complexType>
80
              <xsd:attribute name="alias" type="xsd:string" />
81
              <xsd:attribute name="name" type="xsd:string" />
82
            </xsd:complexType>
83
          </xsd:element>
84
          <xsd:element name="data">
85
            <xsd:complexType>
86
              <xsd:sequence>
87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
              </xsd:sequence>
90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
              <xsd:attribute ref="xml:space" />
94
            </xsd:complexType>
95
          </xsd:element>
96
          <xsd:element name="resheader">
97
            <xsd:complexType>
98
              <xsd:sequence>
99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
              </xsd:sequence>
101
              <xsd:attribute name="name" type="xsd:string" use="required" />
102
            </xsd:complexType>
103
          </xsd:element>
104
        </xsd:choice>
105
      </xsd:complexType>
106
    </xsd:element>
107
  </xsd:schema>
108
  <resheader name="resmimetype">
109
    <value>text/microsoft-resx</value>
110
  </resheader>
111
  <resheader name="version">
112
    <value>2.0</value>
113
  </resheader>
114
  <resheader name="reader">
115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
  <resheader name="writer">
118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
  </resheader>
120
  <data name="Cancel" xml:space="preserve">
121
    <value>Zrušit</value>
122
  </data>
123
  <data name="Create" xml:space="preserve">
124
    <value>Vytvořit</value>
125
  </data>
126
  <data name="EditUser" xml:space="preserve">
127
    <value>Upravit uživatele</value>
128
  </data>
129
  <data name="Email" xml:space="preserve">
130
    <value>E-mailová adresa</value>
131
  </data>
132
  <data name="FirstRole" xml:space="preserve">
133
    <value>První zvolte roli</value>
134
  </data>
135
  <data name="Loading" xml:space="preserve">
136
    <value>Načítám uživatele...</value>
137
  </data>
138
  <data name="LoadingRoles" xml:space="preserve">
139
    <value>Načítám role...</value>
140
  </data>
141
  <data name="LoadingUsers" xml:space="preserve">
142
    <value>Načítám uživatele...</value>
143
  </data>
144
  <data name="Name" xml:space="preserve">
145
    <value>Jméno a příjmení</value>
146
  </data>
147
  <data name="NewUser" xml:space="preserve">
148
    <value>Nový uživatel</value>
149
  </data>
150
  <data name="NoRoles" xml:space="preserve">
151
    <value>Nenalezeny žádné role</value>
152
  </data>
153
  <data name="Role" xml:space="preserve">
154
    <value>Role</value>
155
  </data>
156
  <data name="Save" xml:space="preserve">
157
    <value>Uložit</value>
158
  </data>
159
  <data name="SelectUser" xml:space="preserve">
160
    <value>Vyberte uživatele</value>
161
  </data>
162
  <data name="Senior" xml:space="preserve">
163
    <value>Nadřízený</value>
164
  </data>
165
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Pages/Users/Components/UserAside.de-DE.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
	<!-- 
4
		Microsoft ResX Schema
5

  
6
		Version 1.3
7

  
8
		The primary goals of this format is to allow a simple XML format 
9
		that is mostly human readable. The generation and parsing of the 
10
		various data types are done through the TypeConverter classes 
11
		associated with the data types.
12

  
13
		Example:
14

  
15
		... ado.net/XML headers & schema ...
16
		<resheader name="resmimetype">text/microsoft-resx</resheader>
17
		<resheader name="version">1.3</resheader>
18
		<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
		<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
		<data name="Name1">this is my long string</data>
21
		<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
		<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
			[base64 mime encoded serialized .NET Framework object]
24
		</data>
25
		<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
			[base64 mime encoded string representing a byte array form of the .NET Framework object]
27
		</data>
28

  
29
		There are any number of "resheader" rows that contain simple 
30
		name/value pairs.
31

  
32
		Each data row contains a name, and value. The row also contains a 
33
		type or mimetype. Type corresponds to a .NET class that support 
34
		text/value conversion through the TypeConverter architecture. 
35
		Classes that don't support this are serialized and stored with the 
36
		mimetype set.
37

  
38
		The mimetype is used for serialized objects, and tells the 
39
		ResXResourceReader how to depersist the object. This is currently not 
40
		extensible. For a given mimetype the value must be set accordingly:
41

  
42
		Note - application/x-microsoft.net.object.binary.base64 is the format 
43
		that the ResXResourceWriter will generate, however the reader can 
44
		read any of the formats listed below.
45

  
46
		mimetype: application/x-microsoft.net.object.binary.base64
47
		value   : The object must be serialized with 
48
			: System.Serialization.Formatters.Binary.BinaryFormatter
49
			: and then encoded with base64 encoding.
50

  
51
		mimetype: application/x-microsoft.net.object.soap.base64
52
		value   : The object must be serialized with 
53
			: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54
			: and then encoded with base64 encoding.
55

  
56
		mimetype: application/x-microsoft.net.object.bytearray.base64
57
		value   : The object must be serialized into a byte array 
58
			: using a System.ComponentModel.TypeConverter
59
			: and then encoded with base64 encoding.
60
	-->
61
	
62
	<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
		<xsd:element name="root" msdata:IsDataSet="true">
64
			<xsd:complexType>
65
				<xsd:choice maxOccurs="unbounded">
66
					<xsd:element name="data">
67
						<xsd:complexType>
68
							<xsd:sequence>
69
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
70
								<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
71
							</xsd:sequence>
72
							<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
73
							<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
74
							<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
75
						</xsd:complexType>
76
					</xsd:element>
77
					<xsd:element name="resheader">
78
						<xsd:complexType>
79
							<xsd:sequence>
80
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
81
							</xsd:sequence>
82
							<xsd:attribute name="name" type="xsd:string" use="required" />
83
						</xsd:complexType>
84
					</xsd:element>
85
				</xsd:choice>
86
			</xsd:complexType>
87
		</xsd:element>
88
	</xsd:schema>
89
	<resheader name="resmimetype">
90
		<value>text/microsoft-resx</value>
91
	</resheader>
92
	<resheader name="version">
93
		<value>1.3</value>
94
	</resheader>
95
	<resheader name="reader">
96
		<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97
	</resheader>
98
	<resheader name="writer">
99
		<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100
	</resheader>
101
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Pages/Users/List.cs-CZ.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
    <xsd:element name="root" msdata:IsDataSet="true">
65
      <xsd:complexType>
66
        <xsd:choice maxOccurs="unbounded">
67
          <xsd:element name="metadata">
68
            <xsd:complexType>
69
              <xsd:sequence>
70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
              </xsd:sequence>
72
              <xsd:attribute name="name" use="required" type="xsd:string" />
73
              <xsd:attribute name="type" type="xsd:string" />
74
              <xsd:attribute name="mimetype" type="xsd:string" />
75
              <xsd:attribute ref="xml:space" />
76
            </xsd:complexType>
77
          </xsd:element>
78
          <xsd:element name="assembly">
79
            <xsd:complexType>
80
              <xsd:attribute name="alias" type="xsd:string" />
81
              <xsd:attribute name="name" type="xsd:string" />
82
            </xsd:complexType>
83
          </xsd:element>
84
          <xsd:element name="data">
85
            <xsd:complexType>
86
              <xsd:sequence>
87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
              </xsd:sequence>
90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
              <xsd:attribute ref="xml:space" />
94
            </xsd:complexType>
95
          </xsd:element>
96
          <xsd:element name="resheader">
97
            <xsd:complexType>
98
              <xsd:sequence>
99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
              </xsd:sequence>
101
              <xsd:attribute name="name" type="xsd:string" use="required" />
102
            </xsd:complexType>
103
          </xsd:element>
104
        </xsd:choice>
105
      </xsd:complexType>
106
    </xsd:element>
107
  </xsd:schema>
108
  <resheader name="resmimetype">
109
    <value>text/microsoft-resx</value>
110
  </resheader>
111
  <resheader name="version">
112
    <value>2.0</value>
113
  </resheader>
114
  <resheader name="reader">
115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
  <resheader name="writer">
118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
  </resheader>
120
  <data name="Actions" xml:space="preserve">
121
    <value>Akce</value>
122
  </data>
123
  <data name="AddUser" xml:space="preserve">
124
    <value>Přidat uživatele</value>
125
  </data>
126
  <data name="Edit" xml:space="preserve">
127
    <value>Upravit</value>
128
  </data>
129
  <data name="Email" xml:space="preserve">
130
    <value>Email</value>
131
  </data>
132
  <data name="From" xml:space="preserve">
133
    <value>z</value>
134
  </data>
135
  <data name="Loading" xml:space="preserve">
136
    <value>Načítám...</value>
137
  </data>
138
  <data name="Name" xml:space="preserve">
139
    <value>Jméno</value>
140
  </data>
141
  <data name="Role" xml:space="preserve">
142
    <value>Role</value>
143
  </data>
144
  <data name="Show" xml:space="preserve">
145
    <value>Zobrazeno</value>
146
  </data>
147
  <data name="Title" xml:space="preserve">
148
    <value>Správa uživatelů</value>
149
  </data>
150
  <data name="Type" xml:space="preserve">
151
    <value>Typ</value>
152
  </data>
153
</root>
src/Core/Application/Leuze.Core.Application.UI/Resources/Pages/Users/List.de-DE.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
	<!-- 
4
		Microsoft ResX Schema
5

  
6
		Version 1.3
7

  
8
		The primary goals of this format is to allow a simple XML format 
9
		that is mostly human readable. The generation and parsing of the 
10
		various data types are done through the TypeConverter classes 
11
		associated with the data types.
12

  
13
		Example:
14

  
15
		... ado.net/XML headers & schema ...
16
		<resheader name="resmimetype">text/microsoft-resx</resheader>
17
		<resheader name="version">1.3</resheader>
18
		<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
		<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
		<data name="Name1">this is my long string</data>
21
		<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
		<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
			[base64 mime encoded serialized .NET Framework object]
24
		</data>
25
		<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
			[base64 mime encoded string representing a byte array form of the .NET Framework object]
27
		</data>
28

  
29
		There are any number of "resheader" rows that contain simple 
30
		name/value pairs.
31

  
32
		Each data row contains a name, and value. The row also contains a 
33
		type or mimetype. Type corresponds to a .NET class that support 
34
		text/value conversion through the TypeConverter architecture. 
35
		Classes that don't support this are serialized and stored with the 
36
		mimetype set.
37

  
38
		The mimetype is used for serialized objects, and tells the 
39
		ResXResourceReader how to depersist the object. This is currently not 
40
		extensible. For a given mimetype the value must be set accordingly:
41

  
42
		Note - application/x-microsoft.net.object.binary.base64 is the format 
43
		that the ResXResourceWriter will generate, however the reader can 
44
		read any of the formats listed below.
45

  
46
		mimetype: application/x-microsoft.net.object.binary.base64
47
		value   : The object must be serialized with 
48
			: System.Serialization.Formatters.Binary.BinaryFormatter
49
			: and then encoded with base64 encoding.
50

  
51
		mimetype: application/x-microsoft.net.object.soap.base64
52
		value   : The object must be serialized with 
53
			: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54
			: and then encoded with base64 encoding.
55

  
56
		mimetype: application/x-microsoft.net.object.bytearray.base64
57
		value   : The object must be serialized into a byte array 
58
			: using a System.ComponentModel.TypeConverter
59
			: and then encoded with base64 encoding.
60
	-->
61
	
62
	<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
		<xsd:element name="root" msdata:IsDataSet="true">
64
			<xsd:complexType>
65
				<xsd:choice maxOccurs="unbounded">
66
					<xsd:element name="data">
67
						<xsd:complexType>
68
							<xsd:sequence>
69
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
70
								<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
71
							</xsd:sequence>
72
							<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
73
							<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
74
							<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
75
						</xsd:complexType>
76
					</xsd:element>
77
					<xsd:element name="resheader">
78
						<xsd:complexType>
79
							<xsd:sequence>
80
								<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
81
							</xsd:sequence>
82
							<xsd:attribute name="name" type="xsd:string" use="required" />
83
						</xsd:complexType>
84
					</xsd:element>
85
				</xsd:choice>
86
			</xsd:complexType>
87
		</xsd:element>
88
	</xsd:schema>
89
	<resheader name="resmimetype">
90
		<value>text/microsoft-resx</value>
91
	</resheader>
92
	<resheader name="version">
93
		<value>1.3</value>
94
	</resheader>
95
	<resheader name="reader">
96
		<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97
	</resheader>
98
	<resheader name="writer">
99
		<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100
	</resheader>
101
</root>
src/Core/Application/Leuze.Core.Application.UI/_Imports.razor
25 25
@using Blazored.Toast.Services
26 26
@using Leuze.Core.Domain.Domains.Users
27 27
@using Microsoft.Extensions.Localization
28
@using Microsoft.AspNetCore.Localization
28
@using Microsoft.AspNetCore.Localization
29
@using Blazored.Typeahead
src/Core/Application/Leuze.Core.Application/CQRS/Users/Queries/GetUsersList.cs
18 18
        /// <summary>
19 19
        /// 
20 20
        /// </summary>
21
        public record Query(bool ExcludeMyself) : IBaseRequest<Response>;
21
        public record Query(bool ExcludeMyself, Guid LimitForRole) : IBaseRequest<Response>;
22 22

  
23 23
        /// <summary>
24 24
        /// 
......
49 49
            /// <returns></returns>
50 50
            public async Task<RequestResponse<Response>> Handle(Query request, CancellationToken cancellationToken)
51 51
            {
52
                var list = await _domainUserRepository.GetListAsync();
52
                var list = await _domainUserRepository.GetListAsync(request.LimitForRole);
53 53
                var state = await _authenticationStateProvider.GetAuthenticationStateAsync();
54 54
                var id = Guid.Parse(state.User!.FindFirst(ClaimTypes.NameIdentifier)!.Value);
55 55
                if (request.ExcludeMyself) list = list.Where(o => o.Id != id).ToList();
src/Core/Domain/Leuze.Core.Domain/Repositories/IDomainUserRepository.cs
52 52
        /// 
53 53
        /// </summary>
54 54
        /// <returns></returns>
55
        Task<List<UserShortDto>> GetListAsync();
55
        Task<List<UserShortDto>> GetListAsync(Guid limitForRole);
56 56

  
57 57
        /// <summary>
58 58
        /// 
src/Core/Infrastructure/Leuze.Core.Infrastructure.Persistence/Repository/DomainUserRepository.cs
71 71
                .SingleOrDefaultAsync();
72 72

  
73 73
        /// <inheritdoc/>
74
        public async Task<List<UserShortDto>> GetListAsync()
75
            => await dbSet.Select(o => new UserShortDto(o.UserId, o.Name.FullName)).ToListAsync();
74
        public async Task<List<UserShortDto>> GetListAsync(Guid limitForRole)
75
        {
76
            var query = dbSet.AsQueryable();
77

  
78
            return await query.Select(o => new UserShortDto(o.UserId, o.Name.FullName)).ToListAsync();
79
        }
76 80
    }
77 81
}

Také k dispozici: Unified diff