BranchView.xaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <Window x:Class="Muchinfo.MTPClient.Bank.Views.BranchView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  5. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  6. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  7. xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
  8. Name="win_BranchView"
  9. Title="{x:Static resource:Client_Resource.Bank_Select_Title}"
  10. Height="400"
  11. AllowsTransparency="True"
  12. ShowInTaskbar="False"
  13. Style="{DynamicResource DialogWindowStyle}"
  14. WindowStartupLocation="CenterOwner">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="auto" />
  18. <RowDefinition Height="*" />
  19. <RowDefinition Height="auto" />
  20. </Grid.RowDefinitions>
  21. <StackPanel Grid.Row="0"
  22. Margin="8,5"
  23. Orientation="Horizontal">
  24. <TextBlock VerticalAlignment="Center"
  25. Foreground="{DynamicResource MuchinfoBrush105}"
  26. Text="{x:Static resource:Client_Resource.Text_Province}" />
  27. <ComboBox Height="24"
  28. MinWidth="80"
  29. VerticalContentAlignment="Center"
  30. DisplayMemberPath="Value"
  31. ItemsSource="{Binding ProvinceList}"
  32. SelectedValue="{Binding SelectProvinceId}"
  33. SelectedValuePath="Key"
  34. Style="{DynamicResource SimpleComboBoxStyle}" />
  35. <TextBlock Margin="5,0,0,0"
  36. VerticalAlignment="Center"
  37. Foreground="{DynamicResource MuchinfoBrush105}"
  38. Text="{x:Static resource:Client_Resource.Text_City}" />
  39. <ComboBox Height="24"
  40. MinWidth="80"
  41. VerticalContentAlignment="Center"
  42. ItemsSource="{Binding CityList}"
  43. SelectedValue="{Binding SelectCityName}"
  44. Style="{DynamicResource SimpleComboBoxStyle}" />
  45. <TextBox Width="120"
  46. Margin="10,0,0,0"
  47. Text="{Binding SearchText}" />
  48. <Button Name="bnt_Search"
  49. Width="40"
  50. Background="{DynamicResource MuchinfoBrush52}"
  51. BorderBrush="{DynamicResource MuchinfoBrush22}"
  52. BorderThickness="1"
  53. Command="{Binding SearchCommand}"
  54. Content="{x:Static resource:Client_Resource.Button_Search}"
  55. Foreground="{DynamicResource MuchinfoBrush69}"
  56. Padding="5,2"
  57. Style="{DynamicResource CommonButtonStyle}" />
  58. </StackPanel>
  59. <dataGrid:MuchinfoDataGrid Name="dg_Branch"
  60. Grid.Row="1"
  61. HorizontalAlignment="Stretch"
  62. AutoGenerateColumns="False"
  63. CanUserAddRows="False"
  64. ItemsSource="{Binding BranchSource}"
  65. SelectedIndex="-1"
  66. Style="{DynamicResource BankSelectDataGridStyle}">
  67. <!-- MouseDoubleClick="dgUsers_MouseDoubleClick" SelectionChanged="dgUsers_SelectionChanged" -->
  68. <DataGrid.Columns>
  69. <DataGridTemplateColumn Header="{x:Static resource:Client_Resource.Content_Select}">
  70. <DataGridTemplateColumn.CellTemplate>
  71. <DataTemplate>
  72. <RadioButton HorizontalAlignment="Center"
  73. VerticalAlignment="Center"
  74. GroupName="1"
  75. IsChecked="{Binding IsSelected,
  76. Mode=TwoWay,
  77. UpdateSourceTrigger=PropertyChanged}" />
  78. </DataTemplate>
  79. </DataGridTemplateColumn.CellTemplate>
  80. </DataGridTemplateColumn>
  81. <DataGridTextColumn Width="*"
  82. Binding="{Binding BankName}"
  83. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  84. Header="{x:Static resource:Client_Resource.Content_BankName}" />
  85. <DataGridTextColumn Width="120"
  86. Binding="{Binding FullBankId}"
  87. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  88. Header="{x:Static resource:Client_Resource.Content_FullBankId}" />
  89. </DataGrid.Columns>
  90. </dataGrid:MuchinfoDataGrid>
  91. <StackPanel Grid.Row="2"
  92. Margin="0,14"
  93. HorizontalAlignment="Center"
  94. VerticalAlignment="Center"
  95. Orientation="Horizontal">
  96. <Button Name="btn_Ok"
  97. Width="75"
  98. Margin="0,5,50,0"
  99. Background="{DynamicResource MuchinfoBrush52}"
  100. BorderBrush="{DynamicResource MuchinfoBrush13}"
  101. Command="{Binding OkCommand}"
  102. CommandParameter="{Binding ElementName=win_BranchView}"
  103. Content="{x:Static resource:Client_Resource.Button_Confirm}"
  104. Foreground="{DynamicResource MuchinfoBrush69}"
  105. Style="{DynamicResource CommonButtonStyle}" />
  106. <Button Name="bnt_Cancel"
  107. Width="75"
  108. Margin="0,5,0,0"
  109. Background="{DynamicResource MuchinfoBrush52}"
  110. BorderBrush="{DynamicResource MuchinfoBrush13}"
  111. Command="{Binding CancelCommand}"
  112. CommandParameter="{Binding ElementName=win_BranchView}"
  113. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  114. Foreground="{DynamicResource MuchinfoBrush69}"
  115. Style="{DynamicResource CommonButtonStyle}" />
  116. </StackPanel>
  117. </Grid>
  118. </Window>