| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <Window x:Class="Muchinfo.MTPClient.Bank.Views.BranchView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
- Name="win_BranchView"
- Title="{x:Static resource:Client_Resource.Bank_Select_Title}"
- Height="400"
- AllowsTransparency="True"
- ShowInTaskbar="False"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Margin="8,5"
- Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush105}"
- Text="{x:Static resource:Client_Resource.Text_Province}" />
- <ComboBox Height="24"
- MinWidth="80"
- VerticalContentAlignment="Center"
- DisplayMemberPath="Value"
- ItemsSource="{Binding ProvinceList}"
- SelectedValue="{Binding SelectProvinceId}"
- SelectedValuePath="Key"
- Style="{DynamicResource SimpleComboBoxStyle}" />
- <TextBlock Margin="5,0,0,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush105}"
- Text="{x:Static resource:Client_Resource.Text_City}" />
- <ComboBox Height="24"
- MinWidth="80"
- VerticalContentAlignment="Center"
- ItemsSource="{Binding CityList}"
- SelectedValue="{Binding SelectCityName}"
- Style="{DynamicResource SimpleComboBoxStyle}" />
- <TextBox Width="120"
- Margin="10,0,0,0"
- Text="{Binding SearchText}" />
- <Button Name="bnt_Search"
- Width="40"
- Background="{DynamicResource MuchinfoBrush52}"
- BorderBrush="{DynamicResource MuchinfoBrush22}"
- BorderThickness="1"
- Command="{Binding SearchCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Foreground="{DynamicResource MuchinfoBrush69}"
- Padding="5,2"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid Name="dg_Branch"
- Grid.Row="1"
- HorizontalAlignment="Stretch"
- AutoGenerateColumns="False"
- CanUserAddRows="False"
- ItemsSource="{Binding BranchSource}"
- SelectedIndex="-1"
- Style="{DynamicResource BankSelectDataGridStyle}">
- <!-- MouseDoubleClick="dgUsers_MouseDoubleClick" SelectionChanged="dgUsers_SelectionChanged" -->
- <DataGrid.Columns>
- <DataGridTemplateColumn Header="{x:Static resource:Client_Resource.Content_Select}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <RadioButton HorizontalAlignment="Center"
- VerticalAlignment="Center"
- GroupName="1"
- IsChecked="{Binding IsSelected,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="*"
- Binding="{Binding BankName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_BankName}" />
- <DataGridTextColumn Width="120"
- Binding="{Binding FullBankId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_FullBankId}" />
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <StackPanel Grid.Row="2"
- Margin="0,14"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Name="btn_Ok"
- Width="75"
- Margin="0,5,50,0"
- Background="{DynamicResource MuchinfoBrush52}"
- BorderBrush="{DynamicResource MuchinfoBrush13}"
- Command="{Binding OkCommand}"
- CommandParameter="{Binding ElementName=win_BranchView}"
- Content="{x:Static resource:Client_Resource.Button_Confirm}"
- Foreground="{DynamicResource MuchinfoBrush69}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Name="bnt_Cancel"
- Width="75"
- Margin="0,5,0,0"
- Background="{DynamicResource MuchinfoBrush52}"
- BorderBrush="{DynamicResource MuchinfoBrush13}"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=win_BranchView}"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Foreground="{DynamicResource MuchinfoBrush69}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </Window>
|