351 lines
18 KiB
XML
351 lines
18 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.SendMailView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:proxy="clr-namespace:BeWo.ServiceProxy"
|
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
<localView:BeWoView.Resources>
|
|
<Style x:Key="ButtonFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="2"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="Black"
|
|
StrokeDashArray="1 2"
|
|
StrokeThickness="1" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="WarningButton" TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
|
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Padding" Value="1" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Image
|
|
Width="16"
|
|
Height="16"
|
|
Source="..\..\Ressources\Icons\warning-16x16.png" />
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsKeyboardFocused" Value="true" />
|
|
<Trigger Property="ToggleButton.IsChecked" Value="true" />
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="#ADADAD" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</localView:BeWoView.Resources>
|
|
<Grid Width="Auto" Height="Auto">
|
|
<!-- uc:ShadowChrome -->
|
|
<GroupBox Style="{StaticResource PopUpWindowStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image
|
|
Width="Auto"
|
|
Height="28"
|
|
Margin="0,0,0,0"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\Email.png">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,4,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
BorderThickness="0,0,0,0"
|
|
FontSize="20"
|
|
Foreground="{DynamicResource MainGroupBoxForegroundBrush}"
|
|
Text="Mail senden" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{DynamicResource ServiceRecordContentBrush}" />
|
|
<Grid
|
|
x:Name="rootGrid"
|
|
Grid.Row="1"
|
|
Margin="10,10,10,0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<!--<ColumnDefinition Width="Auto"/>-->
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<!--<Label Content="An:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" Margin="0 0 0 10" />-->
|
|
<Button
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="0,0,0,10"
|
|
HorizontalAlignment="Left"
|
|
Click="AddButton_Click"
|
|
Content="An:" />
|
|
<!--<TextBox x:Name="receiverTextBox" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="0" PreviewKeyDown="receiverTextBox_KeyDown"/>-->
|
|
<WrapPanel
|
|
Name="receiverWrapPanel"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch" />
|
|
<!--<Button Content="Hinzufügen" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="0" Margin="10,0,0,0" Click="AddButton_Click"/>-->
|
|
|
|
<!--<uc:PopUpEdit Margin="3" Grid.Column="3" DeleteButtonVisibility="Collapsed" HorizontalAlignment="Stretch" IsReadOnly="True" Name="popupedit_employee" PopUpClick="popupedit_employee_PopUpClick" />-->
|
|
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
Content="Betreff:" />
|
|
<TextBox
|
|
x:Name="subjectTextBox"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch" />
|
|
|
|
</Grid>
|
|
<WrapPanel Margin="0,10,0,10">
|
|
<RadioButton
|
|
Name="lowPriorityRadioButton"
|
|
GroupName="priorityGroup"
|
|
IsChecked="False">
|
|
Nidrige Priorität
|
|
</RadioButton>
|
|
<RadioButton
|
|
Name="normalPriorityRadioButton"
|
|
Margin="10,0,10,0"
|
|
GroupName="priorityGroup"
|
|
IsChecked="True">
|
|
Normale Priorität
|
|
</RadioButton>
|
|
<RadioButton
|
|
Name="highPriorityRadioButton"
|
|
GroupName="priorityGroup"
|
|
IsChecked="False">
|
|
Hohe Priorität
|
|
</RadioButton>
|
|
</WrapPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<Popup
|
|
Name="popup_employee"
|
|
Grid.Row="2"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_EmployeeSelected" />
|
|
</Popup>
|
|
|
|
<TextBox
|
|
x:Name="mailTextBox"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
AcceptsReturn="True"
|
|
AcceptsTab="True" />
|
|
|
|
<GroupBox
|
|
Grid.Row="2"
|
|
Padding="7"
|
|
Header="Anhang Hinzufügen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<!--<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="1" Content="Datei"/>
|
|
<uc:PopUpEdit Name="popupedit_file" Grid.Column="1" Margin="3" Height="23" Grid.Row="1" DeleteButtonVisibility="Collapsed" PopUpClick="popupedit_file_PopUpClick"/>
|
|
<Label Grid.Row="1" Grid.Column="2" Content="Beschreibung"/>
|
|
<TextBox Name="textbox_fileNotice" Margin="3" Height="23" Grid.Row="1" Grid.Column="3"/>
|
|
<Button IsEnabled="False" Name="button_uploadDocument" Margin="3" Height="25" Grid.Row="1" Grid.Column="4" Click="button_uploadDocument_Click" Content="Datei hinzufügen"/>
|
|
|
|
<ListBox VerticalAlignment="Bottom" Height="48" IsSynchronizedWithCurrentItem="True" Name="attachmentList" Grid.Row="2" Grid.ColumnSpan="5"/>
|
|
</Grid>-->
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Content="Datei" />
|
|
<uc:PopUpEdit
|
|
Name="popupedit_file"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_file_PopUpClick" />
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Beschreibung" />
|
|
<TextBox
|
|
Name="fileNoticeTextbox"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3" />
|
|
|
|
<Grid Grid.Row="2" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button
|
|
Name="button_uploadDocument"
|
|
Grid.Column="0"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Click="button_uploadDocument_Click"
|
|
Content="Datei hinzufügen" />
|
|
<Button
|
|
Name="button_removeAttachment"
|
|
Grid.Column="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Click="button_removeAttachment_Click"
|
|
Content="Anhang entfernen" />
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<ListBox
|
|
Name="attachmentList"
|
|
Grid.Column="1"
|
|
MinWidth="128"
|
|
IsSynchronizedWithCurrentItem="True" />
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btnSave"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Save"
|
|
Content="Senden und schließen" />
|
|
<Button
|
|
x:Name="btnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Abbrechen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- /uc:ShadowChrome -->
|
|
</Grid>
|
|
</localView:BeWoView> |