Sic.Framework/MECF.Framework.UI.Core/Accounts/UserAccountEdit.xaml

74 lines
6.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window x:Class="MECF.Framework.UI.Core.Accounts.UserAccountEdit"
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="Edit 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="120" />
<ColumnDefinition Width="300" />
<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" Name="label1" FontSize="15" FontFamily="Arial,SimSun" Height="30" ClipToBounds="True" />
<Label Content="{DynamicResource GlobalLableAccountViewName}" Grid.Column="2" Grid.Row="1" Margin="10" Name="label21" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewTitle}" Grid.Column="0" Grid.Row="2" Margin="10" Name="label22" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewCompany}" Grid.Column="2" Grid.Row="2" Margin="10" Name="label41" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewDepartment}" Grid.Column="0" Grid.Row="3" Margin="10" Name="label42" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewTelephone}" Grid.Column="2" Grid.Row="3" Margin="10" Name="labe51" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewMailbox}" Grid.Column="0" Grid.Row="4" Margin="10" Name="label52" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<Label Content="{DynamicResource GlobalLableAccountViewDescription}" Grid.Column="0" Grid.Row="5" Margin="10" Name="label61" FontSize="15" FontFamily="Arial,SimSun" Height="30" />
<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">
<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" />
<TextBox Grid.Column="1" Grid.Row="2" Name="textBoxTouxian" Text="{Binding Path=Touxian}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
<TextBox Grid.Column="3" Grid.Row="2" Name="textBoxCompany" Text="{Binding Path=Company}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
<TextBox Grid.Column="1" Grid.Row="3" Name="textBoxDepartment" Text="{Binding Path=Department}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
<TextBox Grid.Column="3" Grid.Row="3" Name="textBoxPhone" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="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">
<Binding Path="Email" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<validationRules:ValidateEmailAddress />
</Binding.ValidationRules>
</Binding>
</TextBox>
<TextBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="5" Name="textBox51" Text="{Binding Path=Description}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" />
<Label Content="{DynamicResource GlobalLableAccountViewRole}" FontFamily="Arial,SimSun" FontSize="15" Height="30" 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" Height="30" Margin="10,15" Name="label3" Grid.Column="2" />-->
<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 GlobalLableAccountViewButtonSave}" Height="29" HorizontalAlignment="Left" Margin="673,6,0,0" Name="buttonSave" VerticalAlignment="Top" Width="81" FontSize="15" Click="button_Save_Click" />
</Grid>
</Grid>
</Window>