Selaa lähdekoodia

some fixes for outlets

bai 4 kuukautta sitten
vanhempi
commit
e1b4ca233c
1 muutettua tiedostoa jossa 46 lisäystä ja 42 poistoa
  1. 46 42
      Views/OutletsView.axaml

+ 46 - 42
Views/OutletsView.axaml

@@ -101,17 +101,17 @@
 				</Style>
 				</Style>
 			</StackPanel.Styles>
 			</StackPanel.Styles>
 			<StackPanel Orientation="Horizontal">
 			<StackPanel Orientation="Horizontal">
-			<Button Classes="BtBack" Command="{Binding BackPersonalAccountView}">
-				<TextBlock Classes="TextBtBack">Назад</TextBlock>
-			</Button>
-			<TextBlock Classes="Chapter">Выберите Торговую точку для изменения</TextBlock>
-			<StackPanel Orientation="Horizontal">
-				<Button Classes="BtAdd" Width="330" Command="{Binding AddOutletsView}">
-				<TextBlock Classes="TextBtAdd">Добавить торговую точку</TextBlock>				
+				<Button Classes="BtBack" Command="{Binding BackPersonalAccountView}">
+					<TextBlock Classes="TextBtBack">Назад</TextBlock>
 				</Button>
 				</Button>
-				<Image Source="avares://Acosta/Assets/plus.png" Width="25" Margin="-70 80 0 0"></Image>
-			</StackPanel>			
-			</StackPanel>			
+				<TextBlock Classes="Chapter">Выберите Торговую точку для изменения</TextBlock>
+				<StackPanel Orientation="Horizontal">
+					<Button Classes="BtAdd" Width="330" Command="{Binding AddOutletsView}">
+						<TextBlock Classes="TextBtAdd">Добавить торговую точку</TextBlock>
+					</Button>
+					<Image Source="avares://Acosta/Assets/plus.png" Width="25" Margin="-70 80 0 0"></Image>
+				</StackPanel>
+			</StackPanel>
 		</StackPanel>
 		</StackPanel>
 		<StackPanel Background="Transparent" Margin="0 150 0 0" HorizontalAlignment="Center">
 		<StackPanel Background="Transparent" Margin="0 150 0 0" HorizontalAlignment="Center">
 			<StackPanel.Styles>
 			<StackPanel.Styles>
@@ -142,15 +142,15 @@
 				</Style>
 				</Style>
 				<Style Selector="Border.TextColumns">
 				<Style Selector="Border.TextColumns">
 					<Setter Property="Margin" Value="0 0 0 20"></Setter>
 					<Setter Property="Margin" Value="0 0 0 20"></Setter>
-				</Style>	
+				</Style>
 				<Style Selector="Border.Data">
 				<Style Selector="Border.Data">
 					<Setter Property="Background" Value="#FFF8F8"></Setter>
 					<Setter Property="Background" Value="#FFF8F8"></Setter>
 					<Setter Property="BorderBrush" Value="#E40714"></Setter>
 					<Setter Property="BorderBrush" Value="#E40714"></Setter>
 					<Setter Property="CornerRadius" Value="13"></Setter>
 					<Setter Property="CornerRadius" Value="13"></Setter>
 					<Setter Property="BorderThickness" Value="2"></Setter>
 					<Setter Property="BorderThickness" Value="2"></Setter>
-				</Style>		
+				</Style>
 				<Style Selector="TextBlock.Data">
 				<Style Selector="TextBlock.Data">
-					<Setter Property="Background" Value="#FFF8F8"></Setter>		
+					<Setter Property="Background" Value="#FFF8F8"></Setter>
 					<Setter Property="FontSize" Value="15"></Setter>
 					<Setter Property="FontSize" Value="15"></Setter>
 					<Setter Property="FontFamily" Value="Roboto"></Setter>
 					<Setter Property="FontFamily" Value="Roboto"></Setter>
 					<Setter Property="FontWeight" Value="Medium"></Setter>
 					<Setter Property="FontWeight" Value="Medium"></Setter>
@@ -181,41 +181,45 @@
 				</Style>
 				</Style>
 			</StackPanel.Styles>
 			</StackPanel.Styles>
 			<Border Classes="TextColumns" Background="#80E40714" CornerRadius="13"  Width="1490" Height="40">
 			<Border Classes="TextColumns" Background="#80E40714" CornerRadius="13"  Width="1490" Height="40">
-					<StackPanel Orientation="Horizontal">
-						<TextBlock Classes="TextColumns">ID</TextBlock>
-						<TextBlock Classes="TextColumns">ТОРГОВАЯ СЕТЬ</TextBlock>
-						<TextBlock Classes="TextColumns">АДРЕС</TextBlock>
-						<TextBlock Classes="TextColumns">МЕСТОПОЛОЖЕНИЕ</TextBlock>
-					</StackPanel>				
+				<StackPanel Orientation="Horizontal">
+					<TextBlock Classes="TextColumns">ID</TextBlock>
+					<TextBlock Classes="TextColumns">ТОРГОВАЯ СЕТЬ</TextBlock>
+					<TextBlock Classes="TextColumns">АДРЕС</TextBlock>
+					<TextBlock Classes="TextColumns">МЕСТОПОЛОЖЕНИЕ</TextBlock>
+				</StackPanel>
 			</Border>
 			</Border>
-			<ScrollViewer Height="600">	
-			<StackPanel Orientation="Vertical">
-				<ListBox Classes="filters" ItemsSource="{Binding ListOutlets}" Background="Transparent" IsTabStop="False">
-					<ListBox.ItemTemplate>
-						<DataTemplate>
-							<StackPanel Orientation="Horizontal" Margin="40 20 0 0">
-								<!--<Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 140 0" Command="{Binding EditOutletsView}">
+			<ScrollViewer Height="600">
+				<StackPanel Orientation="Vertical">
+					<ListBox Classes="filters" ItemsSource="{Binding ListOutlets}" Background="Transparent" IsTabStop="False">
+						<ListBox.ItemTemplate>
+							<DataTemplate>
+								<StackPanel Orientation="Horizontal" Margin="40 0 0 0">
+									<!--<Button Classes="BtEdit" Width="180" Height="40" Margin="0 0 140 0" Command="{Binding EditOutletsView}">
 									<TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
 									<TextBlock Classes="TextBtEdit">Типа ID</TextBlock>
 								</Button>-->
 								</Button>-->
-								<!--<Border  Classes="Data" CornerRadius="13"  Width="180" Height="40" Margin="0 0 140 0">
+									<!--<Border  Classes="Data" CornerRadius="13"  Width="180" Height="40" Margin="0 0 140 0">
 						<TextBlock Classes="Data">Типа ID</TextBlock>
 						<TextBlock Classes="Data">Типа ID</TextBlock>
 					</Border>-->
 					</Border>-->
-								<TextBlock Text="{Binding Outletid}" Classes="EditTextBox" Width="70" Margin="0 0 140 0">Типа id</TextBlock>
-								<TextBlock Text="{Binding TradeNetworksNavigation.Title}" Classes="EditTextBox" Width="200" Margin="0 0 140 0">Типа название торговой сети</TextBlock>
-								<!--<Border  Classes="Data" CornerRadius="13"  Width="310" Height="40" Margin="0 0 140 0">
+									<Border  Classes="Data" CornerRadius="13"  Width="150" Height="40" Margin="0 0 120 0">
+										<TextBlock Text="{Binding Outletid}" Classes="Data">Типа id</TextBlock>
+									</Border>
+									<Border  Classes="Data" CornerRadius="13"  Width="240" Height="40" Margin="0 0 160 0">
+										<TextBlock Text="{Binding TradeNetworksNavigation.Title}" Classes="Data">Типа название торговой сети</TextBlock>
+									</Border>
+									<!--<Border  Classes="Data" CornerRadius="13"  Width="310" Height="40" Margin="0 0 140 0">
 						<TextBlock Classes="Data">Типа название торговой сети</TextBlock>
 						<TextBlock Classes="Data">Типа название торговой сети</TextBlock>
 					</Border>-->
 					</Border>-->
-								<Border  Classes="Data" CornerRadius="13"  Width="220" Height="40" Margin="0 0 145 0">
-									<TextBlock Text="{Binding Address}" Classes="Data">Типа  адрес</TextBlock>
-								</Border>
-								<Border  Classes="Data" CornerRadius="13"  Width="280" Height="40">
-									<TextBlock Text="{Binding Location}" Classes="Data">Типа  местоположение</TextBlock>
-								</Border>
-							</StackPanel>
-						</DataTemplate>
-					</ListBox.ItemTemplate>
-				</ListBox>
-			</StackPanel>
+									<Border  Classes="Data" CornerRadius="13"  Width="220" Height="40" Margin="0 0 120 0">
+										<TextBlock Text="{Binding Address}" Classes="Data">Типа  адрес</TextBlock>
+									</Border>
+									<Border  Classes="Data" CornerRadius="13"  Width="280" Height="40">
+										<TextBlock Text="{Binding Location}" Classes="Data">Типа  местоположение</TextBlock>
+									</Border>
+								</StackPanel>
+							</DataTemplate>
+						</ListBox.ItemTemplate>
+					</ListBox>
+				</StackPanel>
 			</ScrollViewer>
 			</ScrollViewer>
 		</StackPanel>
 		</StackPanel>
 		<!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
 		<!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
@@ -247,4 +251,4 @@
 			</Button>
 			</Button>
 		</StackPanel>-->
 		</StackPanel>-->
 	</Grid>
 	</Grid>
-</UserControl>
+</UserControl>