TradePWDModifyView.xaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <Window x:Class="Muchinfo.MTPClient.Account.Views.TradePWDModifyView"
  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:i="http://schemas.microsoft.com/expression/2010/interactivity"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
  8. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  9. xmlns:utilities="clr-namespace:Muchinfo.MTPClient.Account.Utilities"
  10. xmlns:windows="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Client.WPF.Controls"
  11. xmlns:windows1="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
  12. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  13. x:Name="view"
  14. Title="{x:Static resource:Client_Resource.TradPWDModify_Title}"
  15. Width="360"
  16. Height="320"
  17. ShowInTaskbar="False"
  18. Style="{DynamicResource DialogWindowStyle1}"
  19. WindowStartupLocation="CenterOwner"
  20. mc:Ignorable="d">
  21. <Window.Resources>
  22. <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
  23. <Style x:Key="NewTypeTextBlock" TargetType="{x:Type TextBlock}">
  24. <Setter Property="HorizontalAlignment" Value="Right" />
  25. <Setter Property="VerticalAlignment" Value="Center" />
  26. <Setter Property="Foreground" Value="{DynamicResource TextBlockForeground}" />
  27. </Style>
  28. <!-- 需要控制右上角X按钮,样式复制到此窗口 -->
  29. <Style x:Key="DialogWindowStyle1" TargetType="{x:Type Window}">
  30. <Setter Property="AllowsTransparency" Value="True" />
  31. <Setter Property="Background" Value="Transparent" />
  32. <Setter Property="FontFamily" Value="Simsun, Microsoft YaHei" />
  33. <Setter Property="Foreground" Value="{DynamicResource DialogWindowContnetForeground}" />
  34. <Setter Property="FontSize" Value="{DynamicResource MuchinfoFontSize_XS}" />
  35. <Setter Property="ResizeMode" Value="NoResize" />
  36. <Setter Property="WindowStyle" Value="None" />
  37. <Setter Property="SnapsToDevicePixels" Value="True" />
  38. <Setter Property="TextOptions.TextFormattingMode" Value="Display" />
  39. <Setter Property="Width" Value="565" />
  40. <Setter Property="Height" Value="529" />
  41. <Setter Property="ShowInTaskbar" Value="False" />
  42. </Style>
  43. </Window.Resources>
  44. <Grid Margin="10">
  45. <Rectangle RadiusX="2" RadiusY="2">
  46. <Rectangle.Effect>
  47. <DropShadowEffect BlurRadius="10" ShadowDepth="0" />
  48. </Rectangle.Effect>
  49. </Rectangle>
  50. <Border Background="{DynamicResource DialogWindowBackground}" CornerRadius="2">
  51. <Grid>
  52. <Grid.RowDefinitions>
  53. <RowDefinition Height="47" />
  54. <RowDefinition Height="1" />
  55. <RowDefinition Height="1" />
  56. <RowDefinition Height="*" />
  57. </Grid.RowDefinitions>
  58. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  59. <Border x:Name="brdTitle"
  60. Margin="30,5,30,0"
  61. HorizontalAlignment="Stretch"
  62. VerticalAlignment="Stretch"
  63. Background="Transparent">
  64. <TextBlock HorizontalAlignment="Center"
  65. VerticalAlignment="Center"
  66. FontSize="{DynamicResource MuchinfoFontSize_M}"
  67. FontWeight="Bold"
  68. Foreground="{DynamicResource DialogWindowTitleForeground}"
  69. Text="{x:Static resource:Client_Resource.TradPWDModify_Title}"
  70. TextTrimming="CharacterEllipsis"
  71. ToolTip="{x:Static resource:Client_Resource.TradPWDModify_Title}" />
  72. <i:Interaction.Triggers>
  73. <i:EventTrigger EventName="MouseMove">
  74. <i:InvokeCommandAction Command="{x:Static windows1:DialogWindowCommands.DragMove}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
  75. </i:EventTrigger>
  76. </i:Interaction.Triggers>
  77. </Border>
  78. <Button x:Name="btnClose"
  79. Width="20"
  80. Margin="10,2"
  81. HorizontalAlignment="Right"
  82. Command="{x:Static windows1:DialogWindowCommands.Close}"
  83. CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,
  84. AncestorType={x:Type Window}}}"
  85. IsCancel="True"
  86. Padding="2"
  87. Style="{DynamicResource DialogCloseButtonStyle}"
  88. Visibility="{Binding IsUnforceUpdate,
  89. Converter={StaticResource BooleanToVisibilityConverter}}" />
  90. </Grid>
  91. <Separator Grid.Row="1"
  92. Margin="20,0"
  93. VerticalAlignment="Bottom"
  94. Panel.ZIndex="10"
  95. BorderBrush="{DynamicResource DialogWindowSeparatorTop}"
  96. Style="{DynamicResource ThinSeparatorStyle}" />
  97. <Separator Grid.Row="2"
  98. Margin="20,0"
  99. VerticalAlignment="Bottom"
  100. Panel.ZIndex="10"
  101. BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
  102. Style="{DynamicResource ThinSeparatorStyle}" />
  103. <!-- <ContentPresenter Grid.Row="3" /> -->
  104. <xctk:BusyIndicator Grid.Row="3"
  105. BusyContent="{x:Static resource:Client_Resource.Content_Busy}"
  106. Foreground="{DynamicResource DialogWindowTitleForeground}"
  107. IsBusy="{Binding IsBusy,
  108. Mode=TwoWay}">
  109. <Grid>
  110. <Grid.RowDefinitions>
  111. <RowDefinition Height="*" />
  112. <RowDefinition Height="Auto" />
  113. <RowDefinition Height="Auto" />
  114. </Grid.RowDefinitions>
  115. <!-- Width="262" -->
  116. <TabControl Margin="20,20,20,0"
  117. HorizontalAlignment="Stretch"
  118. Background="Transparent"
  119. BorderThickness="0"
  120. TabStripPlacement="Top">
  121. <TabItem Width="100"
  122. Height="30"
  123. Margin="-8,0,0,0"
  124. Header="{x:Static resource:Client_Resource.Content_LoadPWDUpdate}"
  125. IsSelected="{Binding IsTradePanel}"
  126. Style="{DynamicResource AccountTabItemStyle}">
  127. <StackPanel Margin="40,5,0,0">
  128. <WrapPanel Margin="0,10,0,0">
  129. <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
  130. <TextBlock Text="{Binding LoginID}" />
  131. </WrapPanel>
  132. <WrapPanel Margin="0,10,0,0">
  133. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldTradePassword}" />
  134. <PasswordBox Width="150"
  135. Height="24"
  136. FontFamily="Simsun, Microsoft YaHei"
  137. FontSize="{DynamicResource MuchinfoFontSize_M}"
  138. password:PasswordHelper.Attach="True"
  139. password:PasswordHelper.Password="{Binding OldLoginPassword,
  140. Mode=TwoWay,
  141. UpdateSourceTrigger=PropertyChanged}" />
  142. </WrapPanel>
  143. <WrapPanel Margin="0,10,0,0">
  144. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
  145. <PasswordBox Width="150"
  146. Height="24"
  147. FontFamily="Simsun, Microsoft YaHei"
  148. FontSize="{DynamicResource MuchinfoFontSize_M}"
  149. password:PasswordHelper.Attach="True"
  150. password:PasswordHelper.Password="{Binding NewLoginPassword,
  151. Mode=TwoWay,
  152. UpdateSourceTrigger=PropertyChanged}" />
  153. </WrapPanel>
  154. <WrapPanel Margin="0,10,0,0">
  155. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
  156. <PasswordBox Width="150"
  157. Height="24"
  158. FontFamily="Simsun, Microsoft YaHei"
  159. FontSize="{DynamicResource MuchinfoFontSize_M}"
  160. password:PasswordHelper.Attach="True"
  161. password:PasswordHelper.Password="{Binding ConfLoginPassword,
  162. Mode=TwoWay,
  163. UpdateSourceTrigger=PropertyChanged}" />
  164. </WrapPanel>
  165. </StackPanel>
  166. </TabItem>
  167. <!--
  168. <TabItem Header="{x:Static resource:Client_Resource.Content_TelphonePWDUpdate}"
  169. IsSelected="{Binding IsPhonePanel}"
  170. Style="{DynamicResource AccountTabItemStyle}"
  171. Visibility="Collapsed">
  172. <StackPanel Margin="40,5,0,0">
  173. <WrapPanel Margin="0,10,0,0">
  174. <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
  175. <TextBlock Text="{Binding TradeAccount}" />
  176. </WrapPanel>
  177. <WrapPanel Margin="0,10,0,0">
  178. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldTelphonePassword}" />
  179. <PasswordBox Width="150"
  180. Height="24"
  181. FontFamily="Simsun, Microsoft YaHei"
  182. FontSize="{DynamicResource MuchinfoFontSize_M}"
  183. password:PasswordHelper.Attach="True"
  184. password:PasswordHelper.Password="{Binding OldPhonePassword,
  185. Mode=TwoWay,
  186. UpdateSourceTrigger=PropertyChanged}" />
  187. </WrapPanel>
  188. <WrapPanel Margin="0,10,0,0">
  189. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
  190. <PasswordBox Width="150"
  191. Height="24"
  192. FontFamily="Simsun, Microsoft YaHei"
  193. FontSize="{DynamicResource MuchinfoFontSize_M}"
  194. password:PasswordHelper.Attach="True"
  195. password:PasswordHelper.Password="{Binding NewPhonePassword,
  196. Mode=TwoWay,
  197. UpdateSourceTrigger=PropertyChanged}" />
  198. </WrapPanel>
  199. <WrapPanel Margin="0,10,0,0">
  200. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
  201. <PasswordBox Width="150"
  202. Height="24"
  203. FontFamily="Simsun, Microsoft YaHei"
  204. FontSize="{DynamicResource MuchinfoFontSize_M}"
  205. password:PasswordHelper.Attach="True"
  206. password:PasswordHelper.Password="{Binding ConfPhonePassword,
  207. Mode=TwoWay,
  208. UpdateSourceTrigger=PropertyChanged}" />
  209. </WrapPanel>
  210. </StackPanel>
  211. </TabItem>
  212. <TabItem Header="{x:Static resource:Client_Resource.Content_CommunicationPWDUpdate}"
  213. IsSelected="{Binding IsCommunicationPanel}"
  214. Style="{DynamicResource AccountTabItemStyle}"
  215. Visibility="Collapsed">
  216. <StackPanel Margin="40,5,0,0">
  217. <WrapPanel Margin="0,10,0,0">
  218. <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
  219. <TextBlock Text="{Binding TradeAccount}" />
  220. </WrapPanel>
  221. <WrapPanel Margin="0,10,0,0">
  222. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldCommunicationPassword}" />
  223. <PasswordBox Width="150"
  224. Height="24"
  225. FontFamily="Simsun, Microsoft YaHei"
  226. FontSize="{DynamicResource MuchinfoFontSize_M}"
  227. password:PasswordHelper.Attach="True"
  228. password:PasswordHelper.Password="{Binding OldCommunicationPassword,
  229. Mode=TwoWay,
  230. UpdateSourceTrigger=PropertyChanged}" />
  231. </WrapPanel>
  232. <WrapPanel Margin="0,10,0,0">
  233. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
  234. <PasswordBox Width="150"
  235. Height="24"
  236. FontFamily="Simsun, Microsoft YaHei"
  237. FontSize="{DynamicResource MuchinfoFontSize_M}"
  238. password:PasswordHelper.Attach="True"
  239. password:PasswordHelper.Password="{Binding NewCommunicationPassword,
  240. Mode=TwoWay,
  241. UpdateSourceTrigger=PropertyChanged}" />
  242. </WrapPanel>
  243. <WrapPanel Margin="0,10,0,0">
  244. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
  245. <PasswordBox Width="150"
  246. Height="24"
  247. FontFamily="Simsun, Microsoft YaHei"
  248. FontSize="{DynamicResource MuchinfoFontSize_M}"
  249. password:PasswordHelper.Attach="True"
  250. password:PasswordHelper.Password="{Binding ConfCommunicationPassword,
  251. Mode=TwoWay,
  252. UpdateSourceTrigger=PropertyChanged}" />
  253. </WrapPanel>
  254. </StackPanel>
  255. </TabItem>
  256. -->
  257. <!-- 资管无资金密码修改 -->
  258. <TabItem Width="100"
  259. Height="30"
  260. Margin="-8,0,0,0"
  261. Header="{x:Static resource:Client_Resource.Content_CapitalPWDUpdate}"
  262. IsSelected="{Binding IsFundsPanel}"
  263. Style="{DynamicResource AccountTabItemStyle}"
  264. Visibility="Collapsed">
  265. <StackPanel Margin="40,5,0,0">
  266. <WrapPanel Margin="0,10,0,0">
  267. <TextBlock Text="资金账户:" />
  268. <utilities:FocusComboBox x:Name="fundComBoxBox"
  269. Grid.Row="2"
  270. Grid.Column="2"
  271. Width="150"
  272. HorizontalAlignment="Left"
  273. VerticalAlignment="Center"
  274. ItemsSource="{Binding FundsLst}"
  275. SelectedIndex="0"
  276. SelectedItem="{Binding CurrentFundID,
  277. Mode=TwoWay}"
  278. Style="{DynamicResource SimpleComboBoxStyle}"
  279. TabIndex="1" />
  280. </WrapPanel>
  281. <WrapPanel Margin="0,10,0,0">
  282. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldCapitalPassword}" />
  283. <PasswordBox Width="150"
  284. Height="24"
  285. FontFamily="Simsun, Microsoft YaHei"
  286. FontSize="{DynamicResource MuchinfoFontSize_M}"
  287. password:PasswordHelper.Attach="True"
  288. password:PasswordHelper.Password="{Binding OldFundsPassword,
  289. Mode=TwoWay,
  290. UpdateSourceTrigger=PropertyChanged}" />
  291. </WrapPanel>
  292. <WrapPanel Margin="0,10,0,0">
  293. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
  294. <PasswordBox x:Name="NewFundsPassword"
  295. Width="150"
  296. Height="24"
  297. FontFamily="Simsun, Microsoft YaHei"
  298. FontSize="{DynamicResource MuchinfoFontSize_M}"
  299. KeyDown="NewFundsPassword_OnKeyDown"
  300. password:PasswordHelper.Attach="True"
  301. password:PasswordHelper.Password="{Binding NewFundsPassword,
  302. Mode=TwoWay,
  303. UpdateSourceTrigger=PropertyChanged}" />
  304. </WrapPanel>
  305. <WrapPanel Margin="0,10,0,0">
  306. <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
  307. <PasswordBox x:Name="ConfFundsPassword"
  308. Width="150"
  309. Height="24"
  310. FontFamily="Simsun, Microsoft YaHei"
  311. FontSize="{DynamicResource MuchinfoFontSize_M}"
  312. KeyDown="ConfFundsPassword_OnKeyDown"
  313. password:PasswordHelper.Attach="True"
  314. password:PasswordHelper.Password="{Binding ConfFundsPassword,
  315. Mode=TwoWay,
  316. UpdateSourceTrigger=PropertyChanged}" />
  317. </WrapPanel>
  318. </StackPanel>
  319. </TabItem>
  320. </TabControl>
  321. <TextBlock Grid.Row="1"
  322. Width="240"
  323. Height="23"
  324. HorizontalAlignment="Center"
  325. VerticalAlignment="Top"
  326. Foreground="Red"
  327. Text="{Binding ErrorMsg}"
  328. TextTrimming="WordEllipsis"
  329. ToolTip="{Binding ErrorMsg}" />
  330. <WrapPanel Grid.Row="2"
  331. Margin="0,0,0,10"
  332. HorizontalAlignment="Center"
  333. VerticalAlignment="Center">
  334. <Button Margin="0,0,30,0"
  335. BorderThickness="0"
  336. Command="{Binding OKCommand}"
  337. CommandParameter="{Binding ElementName=view}"
  338. Content="{x:Static resource:Client_Resource.Button_Ok}"
  339. IsDefault="True"
  340. Style="{StaticResource CommonButtonStyle}" />
  341. <Button BorderThickness="0"
  342. Command="{Binding CancelCommand}"
  343. CommandParameter="{Binding ElementName=view}"
  344. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  345. Style="{StaticResource CommonButtonStyle}"
  346. Visibility="{Binding IsUnforceUpdate,
  347. Converter={StaticResource BooleanToVisibilityConverter}}" />
  348. </WrapPanel>
  349. </Grid>
  350. </xctk:BusyIndicator>
  351. </Grid>
  352. </Border>
  353. </Grid>
  354. </Window>