MyAccount.xaml 7.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <Window x:Class="MECF.Framework.UI.Core.Accounts.MyAccount"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="{DynamicResource GlobalLableAccountViewCurrentTitle}"
  5. WindowStartupLocation="CenterOwner" mc:Ignorable="d"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:validationRules="clr-namespace:Aitex.Core.UI.ValidationRules"
  9. d:DesignHeight="472" SizeToContent="WidthAndHeight" d:DesignWidth="880"
  10. ResizeMode="NoResize" ShowInTaskbar="False">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="100*" />
  14. <RowDefinition Height="40" />
  15. </Grid.RowDefinitions>
  16. <Border BorderThickness="2" BorderBrush="Black" Margin="12,12,12,0">
  17. <Grid HorizontalAlignment="Center" Name="NewAccountViewGrid" VerticalAlignment="Top" Height="371">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="120" />
  20. <ColumnDefinition Width="300" />
  21. <ColumnDefinition Width="120" />
  22. <ColumnDefinition Width="300" />
  23. </Grid.ColumnDefinitions>
  24. <Grid.RowDefinitions>
  25. <RowDefinition Height="0" />
  26. <RowDefinition Height="60" />
  27. <RowDefinition Height="60" />
  28. <RowDefinition Height="60" />
  29. <RowDefinition Height="60" />
  30. <RowDefinition Height="60" />
  31. <RowDefinition Height="0" />
  32. </Grid.RowDefinitions>
  33. <Label Content="{DynamicResource GlobalLableAccountViewLoginName}" Grid.Column="0" Grid.Row="1" Margin="10" Name="label1" FontSize="15" FontFamily="Arial,SimSun" Height="30" ClipToBounds="True" />
  34. <Label Content="{DynamicResource GlobalLableAccountViewName}" Grid.Column="2" Grid.Row="1" Margin="10" Name="label21" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  35. <Label Content="{DynamicResource GlobalLableAccountViewTitle}" Grid.Column="0" Grid.Row="2" Margin="10" Name="label22" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  36. <Label Content="{DynamicResource GlobalLableAccountViewCompany}" Grid.Column="2" Grid.Row="2" Margin="10" Name="label41" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  37. <Label Content="{DynamicResource GlobalLableAccountViewDepartment}" Grid.Column="0" Grid.Row="3" Margin="10" Name="label42" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  38. <Label Content="{DynamicResource GlobalLableAccountViewTelephone}" Grid.Column="2" Grid.Row="3" Margin="10" Name="labe51" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  39. <Label Content="{DynamicResource GlobalLableAccountViewMailbox}" Grid.Column="0" Grid.Row="4" Margin="10" Name="label52" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  40. <Label Content="{DynamicResource GlobalLableAccountViewDescription}" Grid.Column="0" Grid.Row="5" Margin="10" Name="label61" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
  41. <TextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Margin="0,15,0,10" Name="textBoxAccountIdEdit" Width="270" VerticalAlignment="Center" Height="30" FontSize="15" IsEnabled="False" IsReadOnly="True">
  42. <Binding Path="AccountId" UpdateSourceTrigger="PropertyChanged">
  43. <Binding.ValidationRules>
  44. <validationRules:ValidateUserName />
  45. </Binding.ValidationRules>
  46. </Binding>
  47. </TextBox>
  48. <TextBox Grid.Column="3" Grid.Row="1" Name="textBoxRealName" Text="{Binding Path=RealName}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
  49. <TextBox Grid.Column="1" Grid.Row="2" Name="textBoxTouxian" Text="{Binding Path=Touxian}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
  50. <TextBox Grid.Column="3" Grid.Row="2" Name="textBoxCompany" Text="{Binding Path=Company}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
  51. <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxDepartment" Text="{Binding Path=Department}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
  52. <TextBox Grid.Column="3" Grid.Row="3" Name="textBoxPhone" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15">
  53. <Binding Path="Telephone" UpdateSourceTrigger="PropertyChanged">
  54. <Binding.ValidationRules>
  55. <validationRules:ValidatePhoneNumber />
  56. </Binding.ValidationRules>
  57. </Binding>
  58. </TextBox>
  59. <TextBox Grid.Column="1" Grid.Row="4" Name="textBox5" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15">
  60. <Binding Path="Email" UpdateSourceTrigger="PropertyChanged">
  61. <Binding.ValidationRules>
  62. <validationRules:ValidateEmailAddress />
  63. </Binding.ValidationRules>
  64. </Binding>
  65. </TextBox>
  66. <TextBox Grid.Column="1" Grid.Row="5" Name="textBox51" Text="{Binding Path=Description}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="110" FontSize="15" Margin="0,15,0,-65" Grid.RowSpan="2" TextWrapping="Wrap"/>
  67. <Label Content="{DynamicResource GlobalLableAccountViewRole}" FontFamily="Arial,SimSun" FontSize="15" Height="30" Margin="10,15" Name="label2" Grid.Column="2" Grid.Row="4" />
  68. <CheckBox Content="{DynamicResource GlobalLableAccountViewEnabled}" Grid.Column="3" Grid.Row="5" Height="19" HorizontalAlignment="Left" Margin="0,20,0,0" Name="checkBox1" VerticalAlignment="Top" FontSize="15" Width="103" IsChecked="{Binding AccountStatus}" IsEnabled="False" />
  69. <!--<Label Content="Status:" FontFamily="Arial,SimSun" FontSize="15" Grid.Row="5" Height="30" Margin="10,15" Name="label3" Grid.Column="2" />-->
  70. <ComboBox Grid.Column="3" Grid.Row="4" Height="29" HorizontalAlignment="Left" Margin="0,15,0,0" Name="comboBoxGroup" VerticalAlignment="Top" Width="143" FontSize="15" IsReadOnly="True" IsEnabled="False" />
  71. </Grid>
  72. </Border>
  73. <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
  74. <!--<Button Content="编辑邮件通知" Height="29" FontSize="15" Click="Button_AddEmailNotification_Click" />-->
  75. <Button Content="{DynamicResource GlobalLableAccountViewButtonPassword}" FontSize="15" Height="29" Name="button_ChangePwd" Click="button_ChangePwd_Click" Margin="5,5,30,0"/>
  76. <Button Content="{DynamicResource GlobalLableAccountViewButtonSave}" Height="29" Name="buttonCreate" FontSize="15" Click="button_Save_Click" />
  77. <Button Content="{DynamicResource GlobalLableButtonCancel}" Height="29" Name="buttonClose" Click="Button_Click" />
  78. </StackPanel>
  79. </Grid>
  80. </Window>