BindCardView.xaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <Window x:Class="Muchinfo.MTPClient.Bank.Views.BindCardView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:System="clr-namespace:System;assembly=mscorlib"
  5. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. Title="{x:Static resource:Client_Resource.Function_BankReBindBankCard}"
  8. Width="420"
  9. Height="320"
  10. ShowInTaskbar="False"
  11. Style="{DynamicResource DialogWindowStyle}">
  12. <xctk:BusyIndicator IsBusy="{Binding IsBusy, Mode=TwoWay}" Style="{DynamicResource BusyIndicatorStyle1}">
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="120" />
  16. <ColumnDefinition />
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="20" />
  20. <RowDefinition Height="40" />
  21. <RowDefinition Height="40" />
  22. <RowDefinition Height="40" />
  23. <RowDefinition Height="40" />
  24. <RowDefinition />
  25. </Grid.RowDefinitions>
  26. <TextBlock Grid.Row="1"
  27. HorizontalAlignment="Right"
  28. VerticalAlignment="Center"
  29. Text="{x:Static resource:Client_Resource.Content_OpenAccountBankName}" />
  30. <ComboBox Grid.Row="1"
  31. Grid.Column="1"
  32. Width="150"
  33. Height="25"
  34. Margin="10,0,0,0"
  35. HorizontalAlignment="Left"
  36. VerticalAlignment="Center"
  37. VerticalContentAlignment="Center"
  38. DisplayMemberPath="BankName"
  39. ItemsSource="{Binding BankList}"
  40. SelectedItem="{Binding SelectBankItem}"
  41. SelectedValuePath="BankId"
  42. Style="{DynamicResource SimpleComboBoxStyle}" />
  43. <TextBlock Grid.Row="2"
  44. HorizontalAlignment="Right"
  45. VerticalAlignment="Center"
  46. Text="{x:Static resource:Client_Resource.Bank_BankAccoutType}" />
  47. <ComboBox Grid.Row="2"
  48. Grid.Column="1"
  49. Width="150"
  50. Height="25"
  51. Margin="10,0,0,0"
  52. HorizontalAlignment="Left"
  53. VerticalAlignment="Center"
  54. VerticalContentAlignment="Center"
  55. DisplayMemberPath="Value"
  56. ItemsSource="{Binding AccountDictionary}"
  57. SelectedValue="{Binding BankAccountType,
  58. Mode=TwoWay}"
  59. SelectedValuePath="Key"
  60. Style="{DynamicResource SimpleComboBoxStyle}" />
  61. <TextBlock Grid.Row="3"
  62. HorizontalAlignment="Right"
  63. VerticalAlignment="Center"
  64. Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AccountName}" />
  65. <TextBox Grid.Row="3"
  66. Grid.Column="1"
  67. Width="150"
  68. Height="25"
  69. Margin="10,0,0,0"
  70. HorizontalAlignment="Left"
  71. VerticalAlignment="Center"
  72. VerticalContentAlignment="Center"
  73. Text="{Binding BankAccountName,
  74. Mode=TwoWay}" />
  75. <TextBlock Grid.Row="4"
  76. HorizontalAlignment="Right"
  77. VerticalAlignment="Center"
  78. Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_BankAccount_CardNum}" />
  79. <TextBox Grid.Row="4"
  80. Grid.Column="1"
  81. Width="150"
  82. Height="25"
  83. Margin="10,0,0,0"
  84. HorizontalAlignment="Left"
  85. VerticalAlignment="Center"
  86. VerticalContentAlignment="Center"
  87. Text="{Binding BankCardNum,
  88. Mode=TwoWay}" />
  89. <StackPanel Grid.Row="5"
  90. Grid.RowSpan="2"
  91. Grid.ColumnSpan="2"
  92. HorizontalAlignment="Center"
  93. Orientation="Horizontal">
  94. <Button Width="82"
  95. Height="26"
  96. Command="{Binding OKCommand}"
  97. CommandParameter="{Binding ElementName=modifyWindow}"
  98. Content="{x:Static resource:Client_Resource.Button_Confirm}"
  99. IsDefault="True"
  100. IsEnabled="{Binding OKButtonEnabled}"
  101. Style="{DynamicResource CommonButtonStyle}"
  102. TabIndex="5" />
  103. <Button Width="82"
  104. Height="26"
  105. Margin="60,0,0,0"
  106. Click="ButtonBase_OnClick"
  107. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  108. Style="{DynamicResource CommonButtonStyle}"
  109. TabIndex="6" />
  110. </StackPanel>
  111. </Grid>
  112. </xctk:BusyIndicator>
  113. </Window>