BankUpdateView.xaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <Window x:Class="Muchinfo.MTPClient.Bank.Views.BankUpdateView"
  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_BankUpdateView"
  9. Title="{x:Static resource:Client_Resource.Bank_Views_ChangeBankAccount}"
  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. <RowDefinition Height="auto" />
  64. </Grid.RowDefinitions>
  65. <StackPanel Grid.Row="1"
  66. Margin="5"
  67. Orientation="Horizontal">
  68. <TextBlock Text="{x:Static resource:Client_Resource.Content_SignBankName}" />
  69. <ComboBox Width="300"
  70. IsEnabled="False"
  71. DisplayMemberPath="CusBankName"
  72. ItemsSource="{Binding SignBankList}"
  73. SelectedItem="{Binding CurrentSigningBank}"
  74. Style="{DynamicResource SimpleComboBoxStyle}" />
  75. </StackPanel>
  76. <StackPanel Grid.Row="2"
  77. Margin="5"
  78. Orientation="Horizontal">
  79. <TextBlock Text="{x:Static resource:Client_Resource.Content_OpenAccountBankName}" />
  80. <!--<TextBox
  81. IsEnabled="True"
  82. Text="{Binding CurrentSigningBank.Name}" />-->
  83. <ComboBox
  84. Width="300"
  85. VerticalContentAlignment="Center"
  86. DisplayMemberPath="BankName"
  87. ItemsSource="{Binding BankList}"
  88. SelectedItem="{Binding SelectBankItem}"
  89. SelectedValuePath="BankId"
  90. Style="{DynamicResource SimpleComboBoxStyle}" />
  91. </StackPanel>
  92. <!--
  93. <StackPanel Grid.Row="3"
  94. Margin="5"
  95. Orientation="Horizontal"
  96. Visibility="{Binding CurrentSigningBank.BranchVisibility}">
  97. <TextBlock Text="开户银行支行" />
  98. <TextBox Height="25"
  99. VerticalContentAlignment="Center"
  100. IsEnabled="True"
  101. Text="{Binding CurrentSigningBank.BranchBankName}" />
  102. </StackPanel>
  103. -->
  104. <StackPanel Grid.Row="4"
  105. Margin="5"
  106. Orientation="Horizontal">
  107. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AccountName}" />
  108. <TextBox
  109. IsEnabled="False"
  110. Text="{Binding CurrentSigningBank.AccountName}" />
  111. </StackPanel>
  112. <StackPanel Grid.Row="5"
  113. Margin="5"
  114. Orientation="Horizontal">
  115. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_BankAccount}" />
  116. <TextBox
  117. IsEnabled="True"
  118. Text="{Binding BankAccountConfirm}" />
  119. </StackPanel>
  120. <StackPanel Grid.Row="6"
  121. Margin="5"
  122. Orientation="Horizontal">
  123. <TextBlock Text="{x:Static resource:Client_Resource.Bank_Views_ConfirmNewBankAccount}" />
  124. <TextBox
  125. IsEnabled="True"
  126. Text="{Binding CurrentSigningBank.BankAccount}" />
  127. </StackPanel>
  128. <!--<StackPanel Grid.Row="7"
  129. Margin="5"
  130. Orientation="Horizontal"
  131. Visibility="{Binding CurrentSigningBank.PaymentNumberVisibility,
  132. Converter={StaticResource BoolCovertVisibility}}">
  133. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_PaymentNumber}" />
  134. <TextBox
  135. IsEnabled="True"
  136. Text="{Binding CurrentSigningBank.PaymentNumber}" />
  137. </StackPanel>
  138. <StackPanel Grid.Row="8"
  139. Margin="5"
  140. Orientation="Horizontal"
  141. Visibility="{Binding CurrentSigningBank.ProtocolNumberVisibility,
  142. Converter={StaticResource BoolCovertVisibility}}">
  143. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_ProtocolNumber}" />
  144. <TextBox
  145. IsEnabled="True"
  146. Text="{Binding CurrentSigningBank.ProtocolNumber}" />
  147. </StackPanel>
  148. <StackPanel Grid.Row="9"
  149. Margin="5"
  150. Orientation="Horizontal"
  151. Visibility="Collapsed">
  152. <TextBlock Margin="8,0,8,0" Text="{x:Static resource:Client_Resource.Content_CredentialTypeName}" />
  153. <TextBox Height="25"
  154. VerticalContentAlignment="Center"
  155. IsEnabled="True"
  156. Text="{Binding CredentialTypeName}" />
  157. </StackPanel>
  158. <StackPanel Grid.Row="10"
  159. Margin="5"
  160. Orientation="Horizontal"
  161. Visibility="Collapsed">
  162. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_CredentialNumber}" />
  163. <TextBox IsEnabled="True"
  164. Text="{Binding CurrentSigningBank.CredentialNumber}" />
  165. </StackPanel>
  166. <StackPanel Grid.Row="11"
  167. Margin="5"
  168. Orientation="Horizontal"
  169. Visibility="{Binding CurrentSigningBank.AgentNameVisibility,
  170. Converter={StaticResource BoolCovertVisibility}}">
  171. <TextBlock Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AgentName}" />
  172. <TextBox Width="300"
  173. IsEnabled="True"
  174. Text="{Binding CurrentSigningBank.AgentName}" />
  175. </StackPanel>
  176. <StackPanel Grid.Row="12"
  177. Margin="5"
  178. Orientation="Horizontal"
  179. Visibility="{Binding CurrentSigningBank.AgentCIDNumberVisibility,
  180. Converter={StaticResource BoolCovertVisibility}}">
  181. <TextBlock Margin="0,6,8,6" Text="{x:Static resource:Client_Resource.Content_CurrentSigningBank_AgentCID}" />
  182. <TextBox
  183. IsEnabled="True"
  184. Text="{Binding CurrentSigningBank.AgentCID}" />
  185. </StackPanel>
  186. <StackPanel Grid.Row="13"
  187. Margin="5"
  188. Orientation="Horizontal"
  189. Visibility="{Binding CurrentSigningBank.BankPasswordVisibility,
  190. Converter={StaticResource BoolCovertVisibility}}">
  191. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_BankPassword}" />
  192. <PasswordBox x:Name="BankPassWord1"
  193. IsEnabled="True"
  194. Width="300"
  195. Height="25"
  196. HorizontalAlignment="Left"
  197. FontFamily="Simsun, Microsoft YaHei"
  198. password:PasswordHelper.Attach="True"
  199. password:PasswordHelper.Password="{Binding CurrentSigningBank.BankPassword,
  200. Mode=TwoWay,
  201. UpdateSourceTrigger=PropertyChanged}" />
  202. </StackPanel>
  203. <StackPanel Grid.Row="14"
  204. Margin="5"
  205. Orientation="Horizontal"
  206. Visibility="{Binding CurrentSigningBank.DrawIdentifyCodeVisibility,
  207. Converter={StaticResource BoolCovertVisibility}}">
  208. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_DrawIdentifyCode}" />
  209. <PasswordBox x:Name="DrawIdentifyCode1"
  210. Width="300"
  211. IsEnabled="True"
  212. Height="25"
  213. HorizontalAlignment="Left"
  214. FontFamily="Simsun, Microsoft YaHei"
  215. password:PasswordHelper.Attach="True"
  216. password:PasswordHelper.Password="{Binding CurrentSigningBank.DrawIdentifyCode,
  217. Mode=TwoWay,
  218. UpdateSourceTrigger=PropertyChanged}" />
  219. </StackPanel>
  220. <StackPanel Grid.Row="15"
  221. Margin="5"
  222. Orientation="Horizontal"
  223. Visibility="{Binding CurrentSigningBank.MobilePhoneVisibility,
  224. Converter={StaticResource BoolCovertVisibility}}">
  225. <TextBlock HorizontalAlignment="Right" Text="{x:Static resource:Client_Resource.Content_Telphone}" />
  226. <TextBox
  227. IsEnabled="True"
  228. Width="300"
  229. Height="25"
  230. HorizontalAlignment="Left"
  231. Text="{Binding CurrentSigningBank.MobilePhone,
  232. Mode=TwoWay,
  233. UpdateSourceTrigger=PropertyChanged}" />
  234. </StackPanel>-->
  235. <StackPanel Grid.Row="16"
  236. Grid.ColumnSpan="2"
  237. Margin="5"
  238. Orientation="Horizontal"
  239. Visibility="{Binding BranchMessage,
  240. Converter={StaticResource BoolCovertVisibility}}">
  241. <TextBlock Width="auto"
  242. Foreground="Red"
  243. Text="{x:Static resource:Client_Resource.Bank_Views_HandlProceduresInCCB}" />
  244. </StackPanel>
  245. <StackPanel Grid.Row="17"
  246. Grid.ColumnSpan="2"
  247. Margin="5"
  248. Orientation="Horizontal"
  249. Visibility="{Binding NetMessage,
  250. Converter={StaticResource BoolCovertVisibility}}">
  251. <TextBlock Width="auto"
  252. Foreground="Red"
  253. Text="{Binding NetWorkSignTips}" />
  254. </StackPanel>
  255. </Grid>
  256. <StackPanel Grid.Row="1"
  257. Margin="5"
  258. HorizontalAlignment="Center"
  259. Orientation="Horizontal">
  260. <Button Name="bnt_OK"
  261. Width="100"
  262. Height="25"
  263. Margin="0,0,50,0"
  264. Command="{Binding OkCommand}"
  265. CommandParameter="{Binding ElementName=win_BankUpdateView}"
  266. Content="{x:Static resource:Client_Resource.Button_Ok}"
  267. IsEnabled="{Binding IsOKEnable}"
  268. Style="{DynamicResource CommonButtonStyle}" />
  269. <!--
  270. Background="{DynamicResource MuchinfoBrush52}"
  271. BorderBrush="{DynamicResource MuchinfoBrush13}"
  272. -->
  273. <Button Name="bnt_Cancel"
  274. Width="100"
  275. Height="25"
  276. Command="{Binding CancelCommand}"
  277. CommandParameter="{Binding ElementName=win_BankUpdateView}"
  278. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  279. Style="{DynamicResource CommonButtonStyle}" />
  280. <!--
  281. Background="{DynamicResource MuchinfoBrush52}"
  282. BorderBrush="{DynamicResource MuchinfoBrush13}"
  283. -->
  284. </StackPanel>
  285. </Grid>
  286. </xctk:BusyIndicator>
  287. </Window>