|
@@ -147,50 +147,52 @@
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">ID:</TextBlock>
|
|
|
- <TextBox Watermark="ID" Width="360" Margin="218 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Employeesid}" Watermark="ID" Width="360" Margin="218 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Фамилия:</TextBlock>
|
|
|
- <TextBox Watermark="Фималия" Width="360" Margin="160 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Surname}" Watermark="Фималия" Width="360" Margin="160 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Имя:</TextBlock>
|
|
|
- <TextBox Watermark="Имя" Width="360" Margin="200 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Name}" Watermark="Имя" Width="360" Margin="200 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Отчетсво:</TextBlock>
|
|
|
- <TextBox Watermark="Отчетсво" Width="360" Margin="156 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Patronymic}" Watermark="Отчетсво" Width="360" Margin="156 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Почта:</TextBlock>
|
|
|
- <TextBox Watermark="Почта" Width="360" Margin="185 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Email}" Watermark="Почта" Width="360" Margin="185 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Телефон:</TextBlock>
|
|
|
- <TextBox Watermark="Телефон" Width="360" Margin="165 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.Phonenumber}" Watermark="Телефон" Width="360" Margin="165 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Classes="TextToTextBox">Роль:</TextBlock>
|
|
|
- <TextBox Watermark="Роль" Width="360" Margin="197 20 0 0"></TextBox>
|
|
|
+ <TextBox Text="{Binding EditUserVM.CurrentUser.RoleNavigation.Title}" Watermark="Роль" Width="360" Margin="197 20 0 0"></TextBox>
|
|
|
</StackPanel>
|
|
|
<Border Background="#969696" CornerRadius="13" Width="1150" Height="0.5" Margin="200 30 0 10" HorizontalAlignment="Left"></Border>
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
<TextBlock Classes="TextToTextBox">Проекты:</TextBlock>
|
|
|
- <CheckBox Classes="TextToCheckBox" Margin="202 10 0 0">
|
|
|
- <TextBlock>Проект “...”</TextBlock>
|
|
|
- </CheckBox>
|
|
|
- <CheckBox Classes="TextToCheckBox" Margin="202 10 0 0">
|
|
|
- <TextBlock>Проект “...”</TextBlock>
|
|
|
- </CheckBox>
|
|
|
- <CheckBox Classes="TextToCheckBox" Margin="202 10 0 0">
|
|
|
- <TextBlock>Проект “...”</TextBlock>
|
|
|
- </CheckBox>
|
|
|
+ <ListBox ItemsSource="{Binding ListProjects}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <CheckBox Classes="TextToCheckBox" Margin="202 10 0 0">
|
|
|
+ <TextBlock Text="{Binding Title}"></TextBlock>
|
|
|
+ </CheckBox>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</ScrollViewer>
|
|
@@ -247,7 +249,7 @@
|
|
|
<Button Classes="BtDelete" Command="">
|
|
|
<TextBlock Classes="TextBtDelete">Удалить</TextBlock>
|
|
|
</Button>
|
|
|
- <Button Classes="BtSave" Command="">
|
|
|
+ <Button Classes="BtSave" Command="{Binding SaveEditUser}">
|
|
|
<TextBlock Classes="TextBtSave">Сохранить</TextBlock>
|
|
|
</Button>
|
|
|
</StackPanel>
|