BankTerminationView.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <Window x:Class="Muchinfo.MTPClient.Bank.Views.BankTerminationView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
  5. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  6. xmlns:windows="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
  7. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  8. Name="win_BankTerminationView"
  9. Title="{x:Static resource:Client_Resource.Bank_Termination_Title}"
  10. Height="530"
  11. ResizeMode="NoResize"
  12. ShowInTaskbar="False"
  13. Style="{DynamicResource DialogWindowStyle}"
  14. WindowStartupLocation="CenterOwner">
  15. <!-- DataContext="{Binding BankTerminationViewModel, Source={StaticResource Locator}}" -->
  16. <Window.Resources>
  17. <BooleanToVisibilityConverter x:Key="BoolCovertVisibility" />
  18. <Style TargetType="{x:Type TextBlock}">
  19. <Setter Property="VerticalAlignment" Value="Center" />
  20. <Setter Property="Width" Value="110" />
  21. <Setter Property="Margin" Value="0,0,8,0" />
  22. <Setter Property="TextAlignment" Value="Right" />
  23. <Setter Property="Foreground" Value="{DynamicResource MainForegroundBrush}" />
  24. </Style>
  25. <Style BasedOn="{StaticResource CommonTextBoxStyle}" TargetType="{x:Type TextBox}">
  26. <Setter Property="IsEnabled" Value="False" />
  27. <Setter Property="VerticalAlignment" Value="Center" />
  28. <Setter Property="VerticalContentAlignment" Value="Center" />
  29. <Setter Property="Height" Value="25" />
  30. <Setter Property="Width" Value="300" />
  31. </Style>
  32. </Window.Resources>
  33. <xctk:BusyIndicator BusyContent="{Binding BusyContent,
  34. Mode=TwoWay}"
  35. Foreground="{DynamicResource MuchinfoBrush106}"
  36. IsBusy="{Binding IsBusy,
  37. Mode=TwoWay}">
  38. <Grid>
  39. <Grid.RowDefinitions>
  40. <RowDefinition Height="*" />
  41. <RowDefinition Height="auto" />
  42. </Grid.RowDefinitions>
  43. <Grid Name="grid_FillInfo"
  44. Margin="10,10"
  45. HorizontalAlignment="Center">
  46. <Grid.RowDefinitions>
  47. <RowDefinition Height="auto" />
  48. <RowDefinition Height="auto" />
  49. <RowDefinition Height="auto" />
  50. <RowDefinition Height="auto" />
  51. <RowDefinition Height="auto" />
  52. <RowDefinition Height="auto" />
  53. <RowDefinition Height="auto" />
  54. <RowDefinition Height="auto" />
  55. <RowDefinition Height="auto" />
  56. <RowDefinition Height="auto" />
  57. <RowDefinition Height="auto" />
  58. <RowDefinition Height="auto" />
  59. <RowDefinition Height="auto" />
  60. <RowDefinition Height="auto" />
  61. <RowDefinition Height="auto" />
  62. <RowDefinition Height="auto" />
  63. </Grid.RowDefinitions>
  64. <StackPanel Grid.Row="1"
  65. Margin="5"
  66. Orientation="Horizontal">
  67. <TextBlock Text="{x:Static resource:Client_Resource.Content_SignBankName}" />
  68. <ComboBox Width="300"
  69. DisplayMemberPath="CusBankName"
  70. ItemsSource="{Binding SignBankList}"
  71. SelectedItem="{Binding CurrentSigningBank}"
  72. Style="{DynamicResource SimpleComboBoxStyle}" />
  73. </StackPanel>
  74. <StackPanel Grid.Row="2"
  75. Margin="5"
  76. Orientation="Horizontal">
  77. <TextBlock Text="{x:Static resource:Client_Resource.Content_OpenAccountBankName}" />
  78. <TextBox IsEnabled="true"
  79. IsReadOnly="true"
  80. Text="{Binding CurrentSigningBank.Name}" />
  81. </StackPanel>
  82. <!--
  83. <StackPanel Grid.Row="3"
  84. Margin="5"
  85. Orientation="Horizontal"
  86. Visibility="{Binding CurrentSigningBank.BranchVisibility}">
  87. <TextBlock Text="开户银行支行" />
  88. <TextBox Height="25"
  89. VerticalContentAlignment="Center"
  90. IsEnabled="True"
  91. IsReadOnly="True"
  92. Text="{Binding CurrentSigningBank.BranchBankName}" />
  93. </StackPanel>
  94. -->
  95. <StackPanel Grid.Row="4"
  96. Margin="5"
  97. Orientation="Horizontal">
  98. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AccountName}" />
  99. <TextBox IsEnabled="True"
  100. IsReadOnly="True"
  101. Text="{Binding CurrentSigningBank.AccountName}" />
  102. </StackPanel>
  103. <StackPanel Grid.Row="5"
  104. Margin="5"
  105. Orientation="Horizontal">
  106. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_BankAccount}" />
  107. <TextBox IsEnabled="True"
  108. IsReadOnly="True"
  109. Text="{Binding CurrentSigningBank.BankAccount}" />
  110. </StackPanel>
  111. <StackPanel Grid.Row="6"
  112. Margin="5"
  113. Orientation="Horizontal"
  114. Visibility="{Binding CurrentSigningBank.PaymentNumberVisibility,
  115. Converter={StaticResource BoolCovertVisibility}}">
  116. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_PaymentNumber}" />
  117. <TextBox IsEnabled="True"
  118. IsReadOnly="True"
  119. Text="{Binding CurrentSigningBank.PaymentNumber}" />
  120. </StackPanel>
  121. <StackPanel Grid.Row="7"
  122. Margin="5"
  123. Orientation="Horizontal"
  124. Visibility="{Binding CurrentSigningBank.ProtocolNumberVisibility,
  125. Converter={StaticResource BoolCovertVisibility}}">
  126. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_ProtocolNumber}" />
  127. <TextBox IsEnabled="True"
  128. IsReadOnly="True"
  129. Text="{Binding CurrentSigningBank.ProtocolNumber}" />
  130. </StackPanel>
  131. <StackPanel Grid.Row="8"
  132. Margin="5"
  133. Orientation="Horizontal"
  134. Visibility="Collapsed">
  135. <TextBlock Margin="8,0,8,0" Text="{x:Static resource:Client_Resource.Content_CredentialTypeName}" />
  136. <TextBox Height="25"
  137. VerticalContentAlignment="Center"
  138. IsEnabled="True"
  139. IsReadOnly="True"
  140. Text="{Binding CredentialTypeName}" />
  141. </StackPanel>
  142. <StackPanel Grid.Row="9"
  143. Margin="5"
  144. Orientation="Horizontal"
  145. Visibility="Collapsed">
  146. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_CredentialNumber}" />
  147. <TextBox IsEnabled="True"
  148. IsReadOnly="True"
  149. Text="{Binding CurrentSigningBank.CredentialNumber}" />
  150. </StackPanel>
  151. <StackPanel Grid.Row="10"
  152. Margin="5"
  153. Orientation="Horizontal"
  154. Visibility="{Binding CurrentSigningBank.AgentNameVisibility,
  155. Converter={StaticResource BoolCovertVisibility}}">
  156. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AgentName}" />
  157. <TextBox Width="300"
  158. IsEnabled="True"
  159. IsReadOnly="True"
  160. Text="{Binding CurrentSigningBank.AgentName}" />
  161. </StackPanel>
  162. <StackPanel Grid.Row="11"
  163. Margin="5"
  164. Orientation="Horizontal"
  165. Visibility="{Binding CurrentSigningBank.AgentCIDNumberVisibility,
  166. Converter={StaticResource BoolCovertVisibility}}">
  167. <TextBlock Margin="0,6,8,6" Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AgentCID}" />
  168. <TextBox IsEnabled="True"
  169. IsReadOnly="True"
  170. Text="{Binding CurrentSigningBank.AgentCID}" />
  171. </StackPanel>
  172. <StackPanel Grid.Row="12"
  173. Margin="5"
  174. Orientation="Horizontal"
  175. Visibility="{Binding CurrentSigningBank.BankPasswordVisibility,
  176. Converter={StaticResource BoolCovertVisibility}}">
  177. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_BankPassword}" />
  178. <PasswordBox x:Name="BankPassWord1"
  179. Width="300"
  180. Height="25"
  181. HorizontalAlignment="Left"
  182. FontFamily="Simsun, Microsoft YaHei"
  183. password:PasswordHelper.Attach="True"
  184. password:PasswordHelper.Password="{Binding CurrentSigningBank.BankPassword,
  185. Mode=TwoWay,
  186. UpdateSourceTrigger=PropertyChanged}" />
  187. </StackPanel>
  188. <StackPanel Grid.Row="13"
  189. Margin="5"
  190. Orientation="Horizontal"
  191. Visibility="{Binding CurrentSigningBank.DrawIdentifyCodeVisibility,
  192. Converter={StaticResource BoolCovertVisibility}}">
  193. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_DrawIdentifyCode}" />
  194. <PasswordBox x:Name="DrawIdentifyCode1"
  195. Width="300"
  196. Height="25"
  197. HorizontalAlignment="Left"
  198. FontFamily="Simsun, Microsoft YaHei"
  199. password:PasswordHelper.Attach="True"
  200. password:PasswordHelper.Password="{Binding CurrentSigningBank.DrawIdentifyCode,
  201. Mode=TwoWay,
  202. UpdateSourceTrigger=PropertyChanged}" />
  203. </StackPanel>
  204. <StackPanel Grid.Row="15"
  205. Grid.ColumnSpan="2"
  206. Margin="5"
  207. Orientation="Horizontal"
  208. Visibility="{Binding BranchMessage,
  209. Converter={StaticResource BoolCovertVisibility}}">
  210. <TextBlock Width="auto"
  211. Foreground="Red"
  212. Text="{x:Static resource:Client_Resource.Bank_Termination_Message}" />
  213. </StackPanel>
  214. <StackPanel Grid.Row="15"
  215. Grid.ColumnSpan="2"
  216. Margin="5"
  217. Orientation="Horizontal"
  218. Visibility="{Binding NetMessage,
  219. Converter={StaticResource BoolCovertVisibility}}">
  220. <TextBlock Width="auto"
  221. Foreground="Red"
  222. Text="{Binding NetWorkSignTips}" />
  223. </StackPanel>
  224. <StackPanel Grid.Row="18"
  225. Margin="5"
  226. Orientation="Horizontal"
  227. Visibility="{Binding CurrentSigningBank.IdentifyCodeVisibility,
  228. Converter={StaticResource BoolCovertVisibility}}">
  229. <Grid>
  230. <Grid.ColumnDefinitions>
  231. <ColumnDefinition Width="60" />
  232. <ColumnDefinition />
  233. <ColumnDefinition />
  234. </Grid.ColumnDefinitions>
  235. <TextBlock HorizontalAlignment="Right" Text="验证码" />
  236. <TextBox Grid.Column="1"
  237. Width="120"
  238. Margin="10,0,0,0"
  239. HorizontalAlignment="Left"
  240. Text="{Binding CurrentSigningBank.IdentifyCode}" />
  241. <Button Grid.Column="2"
  242. Width="120"
  243. Margin="10,0,0,0" IsEnabled="{Binding IsEnalbe}"
  244. HorizontalAlignment="Left"
  245. Content="{Binding CurrentTick}" />
  246. </Grid>
  247. </StackPanel>
  248. </Grid>
  249. <StackPanel Grid.Row="1"
  250. Margin="5"
  251. HorizontalAlignment="Center"
  252. Orientation="Horizontal">
  253. <Button Name="bnt_OK"
  254. Width="100"
  255. Height="25"
  256. Margin="0,0,50,0"
  257. Command="{Binding OkCommand}"
  258. CommandParameter="{Binding ElementName=win_BankTerminationView}"
  259. Content="{x:Static resource:Client_Resource.Button_Ok}"
  260. IsEnabled="{Binding IsOKEnable}"
  261. Style="{DynamicResource CommonButtonStyle}" />
  262. <!--
  263. Background="{DynamicResource MuchinfoBrush52}"
  264. BorderBrush="{DynamicResource MuchinfoBrush13}"
  265. -->
  266. <Button Name="bnt_Cancel"
  267. Width="100"
  268. Height="25"
  269. Command="{Binding CancelCommand}"
  270. CommandParameter="{Binding ElementName=win_BankTerminationView}"
  271. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  272. Style="{DynamicResource CommonButtonStyle}" />
  273. <!--
  274. Background="{DynamicResource MuchinfoBrush52}"
  275. BorderBrush="{DynamicResource MuchinfoBrush13}"
  276. -->
  277. </StackPanel>
  278. </Grid>
  279. </xctk:BusyIndicator>
  280. </Window>