BankSignQueryView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <UserControl x:Class="Muchinfo.MTPClient.Bank.Views.BankSignQueryView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  9. DataContext="{Binding BankSignQuery,
  10. Source={StaticResource Locator}}">
  11. <UserControl.Resources>
  12. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  13. <Style x:Key="DataGridCellColumnStyleTips"
  14. BasedOn="{StaticResource AccountDataGridCellStyle}"
  15. TargetType="{x:Type DataGridCell}">
  16. <Setter Property="ToolTipService.ToolTip" Value="{Binding SubAccountTips}" />
  17. </Style>
  18. </UserControl.Resources>
  19. <Grid>
  20. <xctk:BusyIndicator IsBusy="{Binding IsBusy, Mode=TwoWay}">
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition />
  25. <!-- <RowDefinition Height="30" /> -->
  26. </Grid.RowDefinitions>
  27. <Button Grid.Row="0"
  28. Width="100"
  29. Height="26"
  30. Margin="10,0"
  31. HorizontalAlignment="Right"
  32. VerticalAlignment="Center"
  33. Command="{Binding SignCommand}"
  34. Content="{x:Static resource:Client_Resource.Bank_Btn_Sign}"
  35. Style="{DynamicResource CommonButtonStyle}" />
  36. <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
  37. Grid.Row="1"
  38. ItemsSource="{Binding SigningBanks}"
  39. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  40. SelectedItem="{Binding CurrentSigningBank}"
  41. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  42. <DataGrid.Columns>
  43. <DataGridTextColumn Width="Auto"
  44. MinWidth="140"
  45. Binding="{Binding CusBankName}"
  46. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  47. Header="{x:Static resource:Client_Resource.Content_CusBankName}" />
  48. <DataGridTextColumn Width="Auto"
  49. MinWidth="100"
  50. Binding="{Binding Name}"
  51. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  52. Header="{x:Static resource:Client_Resource.Bank_Views_OpenAccountBank}" />
  53. <DataGridTextColumn Width="Auto"
  54. MinWidth="80"
  55. Binding="{Binding AccountName}"
  56. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  57. Header="{x:Static resource:Client_Resource.text_Bank_AccountName}" />
  58. <DataGridTextColumn Width="Auto"
  59. MinWidth="160"
  60. Binding="{Binding DisplayBankCard}"
  61. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  62. Header="{x:Static resource:Client_Resource.text_Bank_CardNumber}" />
  63. <DataGridTextColumn Width="Auto"
  64. MinWidth="160"
  65. Binding="{Binding DisplaySubAccount}"
  66. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  67. Header="{x:Static resource:Client_Resource.text_Bank_InAccountName}" />
  68. <DataGridTextColumn Width="Auto"
  69. MinWidth="100"
  70. Binding="{Binding DisplayBankMobile}"
  71. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  72. Header="{x:Static resource:Client_Resource.text_BankSign_PhoneNumber}" />
  73. <DataGridTemplateColumn>
  74. <DataGridTemplateColumn.Header>
  75. <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
  76. </DataGridTemplateColumn.Header>
  77. <DataGridTemplateColumn.CellTemplate>
  78. <DataTemplate>
  79. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  80. <Button Height="20"
  81. Command="{Binding Path=BankSignQuery.TerminationCommand,
  82. Source={StaticResource Locator}}"
  83. Content="{x:Static resource:Client_Resource.text_Bank_UnSign}"
  84. Padding="10,2"
  85. Style="{DynamicResource ButtonWithBorderStyle}"
  86. Visibility="{Binding IsShowUnSignBtn,
  87. Converter={StaticResource ToVisibilityConverter}}" />
  88. <!-- 修改手机号 -->
  89. <Button Height="20"
  90. Margin="10,0,0,0"
  91. Command="{Binding Path=BankSignQuery.ModifyPhoneCommand,
  92. Source={StaticResource Locator}}"
  93. CommandParameter="{Binding}"
  94. Content="{x:Static resource:Client_Resource.text_Bank_AlertPhoneNumber}"
  95. Padding="10,2"
  96. Style="{DynamicResource ButtonWithBorderStyle}"
  97. Visibility="{Binding CanModifyMobile,
  98. Converter={StaticResource ToVisibilityConverter}}" />
  99. <Button Height="20"
  100. Margin="10,0,0,0"
  101. Command="{Binding Path=BankSignQuery.UnBingCardCommand,
  102. Source={StaticResource Locator}}"
  103. CommandParameter="{Binding}"
  104. Content="{x:Static resource:Client_Resource.Bank_BankUnBingCard}"
  105. Padding="10,2"
  106. Style="{DynamicResource ButtonWithBorderStyle}"
  107. ToolTip="{x:Static resource:Client_Resource.Function_BankUnBindBankCard}"
  108. Visibility="{Binding IsUnBingBtnShow,
  109. Converter={StaticResource ToVisibilityConverter}}" />
  110. <Button Height="20"
  111. Margin="10,0,0,0"
  112. Command="{Binding Path=BankSignQuery.BankBingCardCommand,
  113. Source={StaticResource Locator}}"
  114. CommandParameter="{Binding}"
  115. Content="{x:Static resource:Client_Resource.Bank_BankBingCard}"
  116. Padding="10,2"
  117. Style="{DynamicResource ButtonWithBorderStyle}"
  118. ToolTip="{x:Static resource:Client_Resource.Function_BankReBindBankCard}"
  119. Visibility="{Binding IsBingBtnShow,
  120. Converter={StaticResource ToVisibilityConverter}}" />
  121. <!-- 查询资金信息 -->
  122. <Button Height="20"
  123. Margin="10,0,0,0"
  124. Command="{Binding Path=BankSignQuery.BalanceCommand,
  125. Source={StaticResource Locator}}"
  126. Content="{x:Static resource:Client_Resource.Bank_BankBalanceAccount}"
  127. Padding="10,2"
  128. Style="{DynamicResource ButtonWithBorderStyle}"
  129. Visibility="{Binding CanQueryAmount,
  130. Converter={StaticResource ToVisibilityConverter}}" />
  131. </StackPanel>
  132. </DataTemplate>
  133. </DataGridTemplateColumn.CellTemplate>
  134. </DataGridTemplateColumn>
  135. </DataGrid.Columns>
  136. <DataGrid.ContextMenu>
  137. <ContextMenu>
  138. <MenuItem Command="{Binding RefreshCommand}"
  139. Header="{x:Static resource:Client_Resource.Button_Refresh}"
  140. IsEnabled="True" />
  141. </ContextMenu>
  142. </DataGrid.ContextMenu>
  143. </dataGrid:MuchinfoDataGrid>
  144. </Grid>
  145. </xctk:BusyIndicator>
  146. </Grid>
  147. </UserControl>