瀏覽代碼

add id in edit outlet view

AngelikaSuhareva 4 月之前
父節點
當前提交
dc9ebac15b
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      Views/AddEmployeesView.axaml
  2. 1 1
      Views/EditOutletsView.axaml

+ 3 - 3
Views/AddEmployeesView.axaml

@@ -184,16 +184,16 @@
 						<TextBlock Classes="TextToTextBox">Роль:</TextBlock>
 						<TextBox Text="{Binding AddEmployeesVM.CurrentUser.Role}" Watermark="Роль" Width="360" Margin="200 20 0 0"></TextBox>
 					</StackPanel>
-					<!--<StackPanel Orientation="Horizontal">
+					<StackPanel Orientation="Horizontal">
 						<TextBlock Classes="TextToTextBox">Роль:</TextBlock>
-						<ComboBox ItemsSource="{Binding rolesList}">
+						<ComboBox ItemsSource="{Binding AddEmployeesVM.Roles}">
 							<ComboBox.ItemTemplate>
 								<DataTemplate>
 									<TextBlock Text="{Binding Roleid}" />
 								</DataTemplate>
 							</ComboBox.ItemTemplate>
 						</ComboBox>
-					</StackPanel>-->
+					</StackPanel>
 					<Border Background="#969696" CornerRadius="13"  Width="1150" Height="0.5" Margin="197 30 0 10" HorizontalAlignment="Left"></Border>
 					<TextBlock Classes="TextToTextBox">Проекты:</TextBlock>
 					<ListBox ItemsSource="{Binding ListProjects}">

+ 1 - 1
Views/EditOutletsView.axaml

@@ -147,7 +147,7 @@
 			<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 EditOutletVM.CurrentOutlet.Outletid}" 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">