AccountCreation.xaml 6.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Window x:Class="MECF.Framework.UI.Core.Accounts.AccountCreation"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:validationRules="clr-namespace:Aitex.Core.UI.ValidationRules"
  5. Title="Create User" Height="382" Width="880" ResizeMode="NoResize"
  6. WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
  7. <Grid>
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="100*" />
  10. <RowDefinition Height="40" />
  11. </Grid.RowDefinitions>
  12. <Border BorderThickness="2" BorderBrush="Black" Margin="12,12,12,0">
  13. <Grid HorizontalAlignment="Center" Name="NewAccountViewGrid" VerticalAlignment="Center">
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="121" />
  16. <ColumnDefinition Width="279" />
  17. <ColumnDefinition Width="120" />
  18. <ColumnDefinition Width="300" />
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="0" />
  22. <RowDefinition Height="60" />
  23. <RowDefinition Height="60" />
  24. <RowDefinition Height="60" />
  25. <RowDefinition Height="60" />
  26. <RowDefinition Height="60" />
  27. <RowDefinition Height="0" />
  28. </Grid.RowDefinitions>
  29. <Label Content="{DynamicResource GlobalLableAccountViewLoginName}" Grid.Column="0" Grid.Row="1" Margin="10,15" Name="label1" FontSize="15" FontFamily="Arial,SimSun" ClipToBounds="True" />
  30. <Label Content="{DynamicResource GlobalLableAccountViewName}" Grid.Column="2" Grid.Row="1" Margin="10,15" Name="label21" FontSize="15" FontFamily="Arial,SimSun" />
  31. <Label Content="{DynamicResource GlobalLableAccountViewTitle}" Grid.Column="0" Grid.Row="2" Margin="10,15" Name="label22" FontSize="15" FontFamily="Arial,SimSun" />
  32. <Label Content="{DynamicResource GlobalLableAccountViewCompany}" Grid.Column="2" Grid.Row="2" Margin="10,15" Name="label41" FontSize="15" FontFamily="Arial,SimSun" />
  33. <Label Content="{DynamicResource GlobalLableAccountViewDepartment}" Grid.Column="0" Grid.Row="3" Margin="10,15" Name="label42" FontSize="15" FontFamily="Arial,SimSun" />
  34. <Label Content="{DynamicResource GlobalLableAccountViewTelephone}" Grid.Column="2" Grid.Row="3" Margin="10,15" Name="labe51" FontSize="15" FontFamily="Arial,SimSun" />
  35. <Label Content="{DynamicResource GlobalLableAccountViewMailbox}" Grid.Column="0" Grid.Row="4" Margin="10,15" Name="label52" FontSize="15" FontFamily="Arial,SimSun" />
  36. <Label Content="{DynamicResource GlobalLableAccountViewDescription}" Grid.Column="0" Grid.Row="5" Margin="10,15" Name="label61" FontSize="15" FontFamily="Arial,SimSun" />
  37. <TextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" IsEnabled="True" Margin="0,18,0,12" Name="textBoxAccountIdEdit" Width="270" VerticalAlignment="Center" Height="30" FontSize="15">
  38. <Binding Path="AccountId" UpdateSourceTrigger="PropertyChanged">
  39. <Binding.ValidationRules>
  40. <validationRules:ValidateUserName />
  41. </Binding.ValidationRules>
  42. </Binding>
  43. </TextBox>
  44. <TextBox Grid.Column="3" Grid.Row="1" Name="textBoxRealName" Text="{Binding Path=RealName}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  45. <TextBox Grid.Column="1" Grid.Row="2" Name="textBoxTouxian" Text="{Binding Path=Touxian}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  46. <TextBox Grid.Column="3" Grid.Row="2" Name="textBoxCompany" Text="{Binding Path=Company}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  47. <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxDepartment" Text="{Binding Path=Department}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  48. <TextBox Grid.Column="3" Grid.Row="3" Name="textBoxPhone" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
  49. <Binding Path="Telephone" UpdateSourceTrigger="PropertyChanged">
  50. <Binding.ValidationRules>
  51. <validationRules:ValidatePhoneNumber />
  52. </Binding.ValidationRules>
  53. </Binding>
  54. </TextBox>
  55. <TextBox Grid.Column="1" Grid.Row="4" Name="textBox5" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
  56. <Binding Path="Email" UpdateSourceTrigger="PropertyChanged">
  57. <Binding.ValidationRules>
  58. <validationRules:ValidateEmailAddress />
  59. </Binding.ValidationRules>
  60. </Binding>
  61. </TextBox>
  62. <TextBox Grid.Column="1" Grid.Row="5" Name="textBox51" Text="{Binding Path=Description}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  63. <Label Content="{DynamicResource GlobalLableAccountViewRole}" FontFamily="Arial,SimSun" FontSize="15" Margin="10,15" Name="label2" Grid.Column="2" Grid.Row="4" />
  64. <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}" />
  65. <Label Content="Status:" FontFamily="Arial,SimSun" FontSize="15" Grid.Row="5" Margin="10,15" Name="label3" Grid.Column="2" Visibility="Hidden" />
  66. <ComboBox Grid.Column="3" Grid.Row="4" Height="29" HorizontalAlignment="Left" Margin="0,15,0,0" Name="comboBoxGroup" VerticalAlignment="Top" Width="143" FontSize="15" />
  67. </Grid>
  68. </Border>
  69. <Grid Grid.Row="1">
  70. <Button Content="{DynamicResource GlobalLableAccountViewButtonCreate}" Height="29" HorizontalAlignment="Left" Margin="673,6,0,0" Name="button1" VerticalAlignment="Top" Width="81" FontSize="15" Click="button_Save_Click" />
  71. </Grid>
  72. </Grid>
  73. </Window>