74 lines
6.5 KiB
Plaintext
74 lines
6.5 KiB
Plaintext
|
<Window x:Class="MECF.Framework.UI.Core.Accounts.AccountCreation"
|
|||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|||
|
xmlns:validationRules="clr-namespace:Aitex.Core.UI.ValidationRules"
|
|||
|
Title="Create User" Height="382" Width="880" ResizeMode="NoResize"
|
|||
|
WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
|
|||
|
<Grid>
|
|||
|
<Grid.RowDefinitions>
|
|||
|
<RowDefinition Height="100*" />
|
|||
|
<RowDefinition Height="40" />
|
|||
|
</Grid.RowDefinitions>
|
|||
|
<Border BorderThickness="2" BorderBrush="Black" Margin="12,12,12,0">
|
|||
|
<Grid HorizontalAlignment="Center" Name="NewAccountViewGrid" VerticalAlignment="Center">
|
|||
|
<Grid.ColumnDefinitions>
|
|||
|
<ColumnDefinition Width="121" />
|
|||
|
<ColumnDefinition Width="279" />
|
|||
|
<ColumnDefinition Width="120" />
|
|||
|
<ColumnDefinition Width="300" />
|
|||
|
</Grid.ColumnDefinitions>
|
|||
|
<Grid.RowDefinitions>
|
|||
|
<RowDefinition Height="0" />
|
|||
|
<RowDefinition Height="60" />
|
|||
|
<RowDefinition Height="60" />
|
|||
|
<RowDefinition Height="60" />
|
|||
|
<RowDefinition Height="60" />
|
|||
|
<RowDefinition Height="60" />
|
|||
|
<RowDefinition Height="0" />
|
|||
|
</Grid.RowDefinitions>
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewLoginName}" Grid.Column="0" Grid.Row="1" Margin="10,15" Name="label1" FontSize="15" FontFamily="Arial,SimSun" ClipToBounds="True" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewName}" Grid.Column="2" Grid.Row="1" Margin="10,15" Name="label21" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewTitle}" Grid.Column="0" Grid.Row="2" Margin="10,15" Name="label22" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewCompany}" Grid.Column="2" Grid.Row="2" Margin="10,15" Name="label41" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewDepartment}" Grid.Column="0" Grid.Row="3" Margin="10,15" Name="label42" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewTelephone}" Grid.Column="2" Grid.Row="3" Margin="10,15" Name="labe51" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewMailbox}" Grid.Column="0" Grid.Row="4" Margin="10,15" Name="label52" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewDescription}" Grid.Column="0" Grid.Row="5" Margin="10,15" Name="label61" FontSize="15" FontFamily="Arial,SimSun" />
|
|||
|
<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">
|
|||
|
<Binding Path="AccountId" UpdateSourceTrigger="PropertyChanged">
|
|||
|
<Binding.ValidationRules>
|
|||
|
<validationRules:ValidateUserName />
|
|||
|
</Binding.ValidationRules>
|
|||
|
</Binding>
|
|||
|
</TextBox>
|
|||
|
<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" />
|
|||
|
<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" />
|
|||
|
<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" />
|
|||
|
<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" />
|
|||
|
<TextBox Grid.Column="3" Grid.Row="3" Name="textBoxPhone" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
|
|||
|
<Binding Path="Telephone" UpdateSourceTrigger="PropertyChanged">
|
|||
|
<Binding.ValidationRules>
|
|||
|
<validationRules:ValidatePhoneNumber />
|
|||
|
</Binding.ValidationRules>
|
|||
|
</Binding>
|
|||
|
</TextBox>
|
|||
|
<TextBox Grid.Column="1" Grid.Row="4" Name="textBox5" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
|
|||
|
<Binding Path="Email" UpdateSourceTrigger="PropertyChanged">
|
|||
|
<Binding.ValidationRules>
|
|||
|
<validationRules:ValidateEmailAddress />
|
|||
|
</Binding.ValidationRules>
|
|||
|
</Binding>
|
|||
|
</TextBox>
|
|||
|
<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" />
|
|||
|
<Label Content="{DynamicResource GlobalLableAccountViewRole}" FontFamily="Arial,SimSun" FontSize="15" Margin="10,15" Name="label2" Grid.Column="2" Grid.Row="4" />
|
|||
|
<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}" />
|
|||
|
<Label Content="Status:" FontFamily="Arial,SimSun" FontSize="15" Grid.Row="5" Margin="10,15" Name="label3" Grid.Column="2" Visibility="Hidden" />
|
|||
|
<ComboBox Grid.Column="3" Grid.Row="4" Height="29" HorizontalAlignment="Left" Margin="0,15,0,0" Name="comboBoxGroup" VerticalAlignment="Top" Width="143" FontSize="15" />
|
|||
|
</Grid>
|
|||
|
</Border>
|
|||
|
<Grid Grid.Row="1">
|
|||
|
<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" />
|
|||
|
</Grid>
|
|||
|
</Grid>
|
|||
|
</Window>
|