| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599 |
- <Window x:Class="Muchinfo.MTPClient.Bank.Views.AmountManagerView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:button="clr-namespace:Muchinfo.WPF.Controls.Button;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="AccountManagerView"
- Title="{Binding TitleName}"
- Width="620"
- Height="430"
- ShowInTaskbar="False"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner"
- mc:Ignorable="d">
- <Window.Resources>
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="Foreground" Value="{DynamicResource MainForegroundBrush}" />
- </Style>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <converters:BoolOpposedVisibility x:Key="OpposedVisibility" />
- <!--
- <Style TargetType="{x:Type TextBox}">
- <Setter Property="VerticalContentAlignment" Value="Center" />
- </Style>
- -->
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="Margin" Value="5,1,0,1" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="border"
- Width="Auto"
- BorderBrush="DarkGray"
- BorderThickness="1">
- <Grid x:Name="grid" Background="#FFFFFF">
- <ScrollViewer x:Name="PART_ContentHost"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <xctk:BusyIndicator BusyContent="{Binding BusyContent}"
- Foreground="{DynamicResource MuchinfoBrush106}"
- IsBusy="{Binding IsBusy,
- Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2"
- Margin="10,2"
- BorderBrush="{DynamicResource InnerBorderBrush}"
- BorderThickness="1"
- CornerRadius="4"
- Visibility="{Binding IsShowInTips,
- Converter={StaticResource ToVisibilityConverter}}">
- <StackPanel Margin="0,4" Orientation="Horizontal">
- <TextBlock Text="{Binding InAmountTips}" />
- <Button Margin="20,0,0,0"
- Click="ButtonBase_OnClick"
- Content="{x:Static resource:Client_Resource.text_Button_ShowInGuide}"
- Style="{DynamicResource TextButtonStyle}" />
- </StackPanel>
- </Border>
- <Grid Grid.Row="1" Margin="20,10,5,10">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <!--
- <TextBlock VerticalAlignment="Center" Visibility="Collapsed" Text="业务类型:" />
- <ComboBox
- VerticalAlignment="Center"
- DisplayMemberPath="Value"
- Grid.Column="1"
- Visibility="Collapsed"
- ItemsSource="{Binding ApplyTypes}"
- SelectedValue="{Binding CurrentApplyType,
- Mode=TwoWay}"
- SelectedValuePath="Key" Grid.ColumnSpan="2" />
- <TextBlock VerticalAlignment="Center" Text="交易账户:" Visibility="Collapsed" Grid.Row="1" />
- <ComboBox Grid.Row="1"
- Grid.Column="1"
- Visibility="Collapsed"
- Grid.ColumnSpan="2"
- VerticalAlignment="Center"
- DisplayMemberPath="TradeCode"
- ItemsSource="{Binding TradeAccountList}"
- SelectedIndex="0"
- SelectedItem="{Binding CurrentTradeAccount,
- Mode=TwoWay}" />
- -->
- <TextBlock Margin="0,0,0,5"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_AvailableFund}"
- Visibility="{Binding OutVisibility}" />
- <TextBox Grid.Column="1"
- Height="23"
- Margin="10,0,10,5"
- VerticalAlignment="Center"
- IsReadOnly="True"
- Text="{Binding UseAmount,
- Mode=OneWay}"
- Visibility="{Binding OutVisibility}" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_WithdrawAmount}"
- Visibility="{Binding OutVisibility}" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_DepositAmount}"
- Visibility="{Binding InVisibility}" />
- <TextBox Grid.Row="1"
- Grid.Column="1"
- Height="23"
- Margin="10,5"
- VerticalAlignment="Center"
- GotFocus="GetFocus"
- KeyUp="TextBox_KeyUp"
- Text="{Binding Money,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- TextChanged="TextBox_TextChanged"
- UndoLimit="0" />
- <TextBlock Grid.Row="2"
- Grid.Column="1"
- Text="{x:Static resource:Client_Resource.DepositAmount_ModifyTips}"
- Visibility="{Binding IsShowModifyTips,
- Converter={StaticResource ToVisibilityConverter}}" />
- <TextBox Name="txt_ChineseNumber"
- Grid.Row="3"
- Grid.Column="1"
- Height="23"
- Margin="10,5"
- HorizontalContentAlignment="Stretch"
- VerticalContentAlignment="Center"
- BorderThickness="1"
- IsReadOnly="True"
- Text="{Binding ChineseNumber,
- Mode=TwoWay}" />
- <button:ImageButton Grid.Row="0"
- Grid.Column="1"
- Margin="0,0,16,5"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- HoverImageSource="{DynamicResource AccoutRefresh}"
- ImageHeight="16"
- ImageWidth="16"
- NormalImageSource="{DynamicResource AccoutRefresh}"
- PressedImageSource="{DynamicResource AccoutRefresh}"
- ToolTip="{x:Static resource:Client_Resource.Bank_Views_Refresh}"
- Visibility="{Binding OutVisibility}" />
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_FundPassword}" />
- <!--
- <Grid Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- -->
- <PasswordBox Grid.Row="4"
- Grid.Column="1"
- Height="23"
- Margin="10,5"
- VerticalAlignment="Center"
- FontFamily="Simsun, Microsoft YaHei"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding Password,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- <!--
- <Button Grid.Column="1"
- Margin="5,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Command="{Binding OpenKeyboardCommand}"
- CommandParameter="{Binding ElementName=UserpasswoBox}"
- Padding="0">
- <Image Width="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="{DynamicResource KeyboardImageSource}" />
- </Button>
- </Grid>
- -->
- <TextBlock Grid.Row="5"
- Margin="0,10"
- Text="{x:Static resource:Client_Resource.Bank_Views_Remarks}" />
- <TextBox Grid.Row="5"
- Grid.Column="1"
- Height="90"
- Margin="10,5"
- VerticalAlignment="Top"
- AcceptsReturn="True"
- Text="{Binding Remark,
- Mode=TwoWay}"
- TextWrapping="Wrap"
- VerticalScrollBarVisibility="Auto" />
- </Grid>
- <!--
- <Border Height="188"
- Margin="0,10"
- HorizontalAlignment="Right"
- BorderBrush="{DynamicResource MuchinfoBrush53}"
- BorderThickness="1" />
- -->
- <!--
- <Border Grid.Row="0"
- Grid.Column="1"
- Margin="14,20"
- VerticalAlignment="Top"
- BorderBrush="{DynamicResource MuchinfoBrush3}"
- BorderThickness="1"
- CornerRadius="4">
- <Grid Margin="-1,0,1,0" Background="{DynamicResource MuchinfoBrush51}">
- <Grid.RowDefinitions>
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Border Grid.ColumnSpan="2" Background="{DynamicResource MuchinfoBrush3}">
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- FontWeight="Bold"
- Text="{x:Static resource:Client_Resource.Bank_Views_BankDate}" />
- </Border>
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_AccountName}" />
- <TextBox Grid.Row="1"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.AccountName,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_SignBank}" />
- <ComboBox Grid.Row="2"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- DisplayMemberPath="CusBankName"
- ItemsSource="{Binding SignBankList}"
- SelectedItem="{Binding CurrentSigningBank}"
- Style="{DynamicResource SimpleComboBoxStyle}" />
-
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_OpenAccountBank}" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.Name,
- Mode=TwoWay}" />
- -->
- <!--
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="开户支行" />
- <Label Grid.Row="4"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- Content="{Binding CurrentSigningBank.BranchBankName,
- Mode=TwoWay}" />
- -->
- <!--
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_BankAccount}" />
- <TextBox Grid.Row="4"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.BankAccount,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="5"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="{Binding PhoneBankPassIsEnabled}"
- Text="{x:Static resource:Client_Resource.Bank_Views_TelPhonBankPassword}" />
- <PasswordBox Grid.Row="5"
- Grid.Column="1"
- Width="217"
- Height="23"
- Margin="8,0"
- HorizontalAlignment="Left"
- FontFamily="Simsun, Microsoft YaHei"
- IsEnabled="{Binding PhoneBankPassIsEnabled}"
- password:PasswordHelper.Password="{Binding PhoneBankPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- -->
- <!--
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- Text="身份证号:" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- Text="{Binding BankAccountInfo.IDNumber,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Text="联系电话:" />
- <TextBox Grid.Row="4"
- Grid.Column="1"
- Text="{Binding BankAccountInfo.PhoneNumber,
- Mode=TwoWay}" />
- -->
- <!--
- </Grid>
- </Border>
- -->
- <GroupBox Grid.Row="1"
- Grid.Column="1"
- Margin="10,10,15,30"
- BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
- BorderThickness="1"
- Padding="5">
- <GroupBox.Header>
- <TextBlock FontWeight="Bold"
- Foreground="{DynamicResource DialogWindowTitleForeground}"
- Text="{x:Static resource:Client_Resource.Bank_Views_BankDate}" />
- </GroupBox.Header>
- <Grid Margin="-1,0,1,0" Background="{DynamicResource MuchinfoBrush51}">
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="32" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="32" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- Margin="8,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_AccountName}" />
- <TextBox Grid.Row="1"
- Grid.Column="1"
- Width="140"
- Height="23"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.AccountName,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- Margin="8,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_SignBank}" />
- <ComboBox Grid.Row="2"
- Grid.Column="1"
- Width="140"
- Height="24"
- Margin="5,0,0,0"
- HorizontalAlignment="Left"
- DisplayMemberPath="CusBankName"
- ItemsSource="{Binding SignBankList}"
- SelectedItem="{Binding CurrentSigningBank}"
- Style="{DynamicResource SimpleComboBoxStyle}" />
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- Margin="8,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_OpenAccountBank}" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- Width="140"
- Height="23"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.Name,
- Mode=TwoWay}" />
- <!--
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- Text="开户支行" />
- <Label Grid.Row="4"
- Grid.Column="1"
- Height="23"
- Margin="8,0"
- Content="{Binding CurrentSigningBank.BranchBankName,
- Mode=TwoWay}" />
- -->
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Margin="8,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_BankAccount}" />
- <TextBox Grid.Row="4"
- Grid.Column="1"
- Width="140"
- Height="23"
- IsEnabled="False"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.BankAccount,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="5"
- Grid.Column="0"
- Margin="5,5,0,5"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Bank_Views_TelPhonBankPassword}"
- Visibility="{Binding PhoneBankPassIsEnabled,
- Converter={StaticResource ToVisibilityConverter}}" />
- <TextBlock Grid.Row="5"
- Grid.Column="0"
- Margin="5,5,0,5"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Content_DrawIdentifyCode}"
- Visibility="{Binding BankPassIsEnabled,
- Converter={StaticResource ToVisibilityConverter}}" />
- <PasswordBox Grid.Row="5"
- Grid.Column="1"
- Width="140"
- Height="23"
- Margin="5,5,0,5"
- HorizontalAlignment="Left"
- FontFamily="Simsun, Microsoft YaHei"
- IsEnabled="{Binding IsPassWordEnabled}"
- Visibility="{Binding IsPassWordEnabled,
- Converter={StaticResource ToVisibilityConverter}}"
- password:PasswordHelper.Password="{Binding PhoneBankPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock Grid.Row="6"
- Grid.Column="0"
- Margin="5,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Money_IdentifyCode}"
- Visibility="{Binding IsShowIdentifyCode,
- Converter={StaticResource ToVisibilityConverter}}" />
- <StackPanel Grid.Row="6"
- Grid.Column="1"
- Margin="5,1,0,1"
- Orientation="Horizontal"
- Visibility="{Binding IsShowIdentifyCode,
- Converter={StaticResource ToVisibilityConverter}}">
- <TextBox Width="80"
- Margin="0"
- FontFamily="Simsun, Microsoft YaHei"
- Style="{DynamicResource TextBoxStyle}"
- Text="{Binding CurrentSigningBank.IdentifyCode}" />
- <TextBlock Margin="5,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding CurrentTick}"
- Visibility="{Binding IsEnalbe,
- Converter={StaticResource OpposedVisibility}}" />
- <Button Margin="5,0,0,0"
- HorizontalAlignment="Left"
- Command="{Binding IdentifyCodeCommand}"
- Content="{x:Static resource:Client_Resource.Content_GetIdentifyCode}"
- IsEnabled="{Binding IsEnalbe}"
- Padding="3,2"
- Style="{DynamicResource CommonButtonStyle}"
- Visibility="{Binding IsEnalbe,
- Converter={StaticResource ToVisibilityConverter}}" />
- </StackPanel>
- <!--
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- Text="身份证号:" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- Text="{Binding BankAccountInfo.IDNumber,
- Mode=TwoWay}" />
- <TextBlock Grid.Row="4"
- Grid.Column="0"
- Text="联系电话:" />
- <TextBox Grid.Row="4"
- Grid.Column="1"
- Text="{Binding BankAccountInfo.PhoneNumber,
- Mode=TwoWay}" />
- -->
- </Grid>
- </GroupBox>
- <StackPanel Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="0,10,0,20"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="28"
- VerticalAlignment="Top"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=AccountManagerView}"
- Content="{x:Static resource:Client_Resource.Bank_Views_Ok}"
- IsDefault="True"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="82"
- Height="28"
- Margin="60,0,0,0"
- VerticalAlignment="Top"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=AccountManagerView}"
- Content="{x:Static resource:Client_Resource.Bank_Views_Cancel}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- </Window>
|