| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <UserControl x:Class="Muchinfo.MTPClient.Bank.Views.BankSignQueryView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- DataContext="{Binding BankSignQuery,
- Source={StaticResource Locator}}">
- <UserControl.Resources>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <Style x:Key="DataGridCellColumnStyleTips"
- BasedOn="{StaticResource AccountDataGridCellStyle}"
- TargetType="{x:Type DataGridCell}">
- <Setter Property="ToolTipService.ToolTip" Value="{Binding SubAccountTips}" />
- </Style>
- </UserControl.Resources>
- <Grid>
- <xctk:BusyIndicator IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <!-- <RowDefinition Height="30" /> -->
- </Grid.RowDefinitions>
- <Button Grid.Row="0"
- Width="100"
- Height="26"
- Margin="10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{Binding SignCommand}"
- Content="{x:Static resource:Client_Resource.Bank_Btn_Sign}"
- Style="{DynamicResource CommonButtonStyle}" />
- <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding SigningBanks}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentSigningBank}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding CusBankName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_CusBankName}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Name}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Bank_Views_OpenAccountBank}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding AccountName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.text_Bank_AccountName}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="160"
- Binding="{Binding DisplayBankCard}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.text_Bank_CardNumber}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="160"
- Binding="{Binding DisplaySubAccount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.text_Bank_InAccountName}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DisplayBankMobile}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.text_BankSign_PhoneNumber}" />
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.Header>
- <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Height="20"
- Command="{Binding Path=BankSignQuery.TerminationCommand,
- Source={StaticResource Locator}}"
- Content="{x:Static resource:Client_Resource.text_Bank_UnSign}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding IsShowUnSignBtn,
- Converter={StaticResource ToVisibilityConverter}}" />
- <!-- 修改手机号 -->
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=BankSignQuery.ModifyPhoneCommand,
- Source={StaticResource Locator}}"
- CommandParameter="{Binding}"
- Content="{x:Static resource:Client_Resource.text_Bank_AlertPhoneNumber}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding CanModifyMobile,
- Converter={StaticResource ToVisibilityConverter}}" />
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=BankSignQuery.UnBingCardCommand,
- Source={StaticResource Locator}}"
- CommandParameter="{Binding}"
- Content="{x:Static resource:Client_Resource.Bank_BankUnBingCard}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- ToolTip="{x:Static resource:Client_Resource.Function_BankUnBindBankCard}"
- Visibility="{Binding IsUnBingBtnShow,
- Converter={StaticResource ToVisibilityConverter}}" />
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=BankSignQuery.BankBingCardCommand,
- Source={StaticResource Locator}}"
- CommandParameter="{Binding}"
- Content="{x:Static resource:Client_Resource.Bank_BankBingCard}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- ToolTip="{x:Static resource:Client_Resource.Function_BankReBindBankCard}"
- Visibility="{Binding IsBingBtnShow,
- Converter={StaticResource ToVisibilityConverter}}" />
- <!-- 查询资金信息 -->
- <Button Height="20"
- Margin="10,0,0,0"
- Command="{Binding Path=BankSignQuery.BalanceCommand,
- Source={StaticResource Locator}}"
- Content="{x:Static resource:Client_Resource.Bank_BankBalanceAccount}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding CanQueryAmount,
- Converter={StaticResource ToVisibilityConverter}}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </Grid>
- </UserControl>
|