252 lines
13 KiB
XML
252 lines
13 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.Accounting.SettlementInvoiceView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localViewDetail="clr-namespace:BeWo.View.Detail.Accounting"
|
|
xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
|
|
xmlns:localsearch="clr-namespace:BeWo.View.Search"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:proxy="clr-namespace:BeWo.ServiceProxy"
|
|
xmlns:r="clr-namespace:BeWo.Security"
|
|
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">
|
|
|
|
<Grid>
|
|
|
|
<GroupBox Header="Spitzabrechnung" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
<Grid HorizontalAlignment="Stretch">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Foreground="Black"
|
|
Text="{markup:Translate Hilfeplan:}" />
|
|
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_CostBeaerer"
|
|
Grid.Column="1"
|
|
Width="250"
|
|
Height="23"
|
|
MaxWidth="300"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_CostBeaerer_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_CostBeaerer_OnPreviewMouseDoubleClick" />
|
|
<Popup
|
|
x:Name="popup_costBearer"
|
|
Grid.Row="2"
|
|
Width="450"
|
|
Height="400"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localsearch:SupportConceptSearchView
|
|
x:Name="supportconceptsearchview"
|
|
ItemSelected="SupportConceptSearchView_ItemSelected"
|
|
SearchMode="ActiveApprovedLVRSupportConcepts" />
|
|
</Popup>
|
|
|
|
<Button
|
|
Name="button_addCostBearer"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="5,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Stretch"
|
|
Click="button_addCostBearer_Click"
|
|
Content="Spitzabrechnung erstellen"
|
|
ToolTip="Hinzufügen"
|
|
Visibility="{Binding Text, ElementName=popupedit_CostBeaerer, Converter={StaticResource ObjectVisibilityConverter}}" />
|
|
|
|
</Grid>
|
|
<ListView
|
|
Name="lb_invoivces"
|
|
Grid.Row="1"
|
|
HorizontalContentAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
ItemsSource="{Binding VMList, Mode=OneWay}"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListBoxItem}">
|
|
<Setter Property="Focusable" Value="false" />
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
<ListView.Resources>
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent" />
|
|
</ListView.Resources>
|
|
<ListView.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel />
|
|
</ItemsPanelTemplate>
|
|
</ListView.ItemsPanel>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border
|
|
Height="85"
|
|
Margin="3"
|
|
Background="White"
|
|
BorderBrush="Black"
|
|
BorderThickness="1"
|
|
CornerRadius="5">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Margin="5,5,5,3" FontWeight="Bold">
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="{}{0} vom {1:dd.MM.yyyy} an {2} - {3}">
|
|
<MultiBinding.Bindings>
|
|
<Binding Path="InvoiceNumber" />
|
|
<Binding Path="InvoiceDate" />
|
|
<Binding Path="RecipientOrganisation" />
|
|
<Binding Path="RecipientContactPerson" />
|
|
</MultiBinding.Bindings>
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="5,0,0,0">
|
|
<TextBlock.Text>
|
|
<MultiBinding StringFormat="Abrechnungszeitraum: {0:dd.MM.yyyy} - {1:dd.MM.yyyy}">
|
|
<MultiBinding.Bindings>
|
|
<Binding Path="AccountingPeriodStart" />
|
|
<Binding Path="AccountingPeriodEnd" />
|
|
</MultiBinding.Bindings>
|
|
</MultiBinding>
|
|
</TextBlock.Text>
|
|
</TextBlock>
|
|
|
|
<TextBlock
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
Height="50"
|
|
Margin="0,5,5,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
FontWeight="Bold"
|
|
Text="{Binding Claim, Mode=OneWay, StringFormat=\{0:0.00\} €}" />
|
|
|
|
|
|
<Button
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Width="32"
|
|
Height="22"
|
|
Margin="0,0,75,5"
|
|
HorizontalAlignment="Right"
|
|
Style="{DynamicResource GlassButton}">
|
|
<TextBlock>
|
|
<Hyperlink
|
|
Foreground="#FFFFFFFF"
|
|
NavigateUri="{Binding Converter={StaticResource SettlementDCPrintURLConverter}}"
|
|
RequestNavigate="Hyperlink_OnRequestNavigate"
|
|
TargetName="_NewWindow">
|
|
<Grid
|
|
Width="32"
|
|
Height="22"
|
|
Margin="-3,0">
|
|
<Rectangle Fill="White" Opacity=".01" />
|
|
<TextBlock
|
|
Margin="6,1,0,0"
|
|
FontFamily="Webdings"
|
|
FontSize="18"
|
|
Foreground="#2d4d82"
|
|
Text="¥" />
|
|
</Grid>
|
|
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Button>
|
|
|
|
|
|
<Button
|
|
x:Name="btnEdit"
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Width="32"
|
|
Height="22"
|
|
Margin="0,0,40,5"
|
|
Padding="1,1,1,1"
|
|
HorizontalAlignment="Right"
|
|
BorderThickness="1,1,1,1"
|
|
Click="bt_edit_Click"
|
|
Style="{DynamicResource GlassButton}"
|
|
Tag="{Binding}"
|
|
Visibility="{Binding EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Image
|
|
Margin="1,1,1,1"
|
|
Source="..\..\..\Ressources\Icons\Symbol Edit.png"
|
|
Stretch="Uniform" />
|
|
</Button>
|
|
<Button
|
|
x:Name="btnDelete"
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Width="32"
|
|
Height="22"
|
|
Margin="0,0,5,5"
|
|
Padding="1,1,1,1"
|
|
HorizontalAlignment="Right"
|
|
BorderThickness="1,1,1,1"
|
|
Click="bt_delete_Click"
|
|
Style="{DynamicResource GlassButton}"
|
|
Tag="{Binding}"
|
|
Visibility="{Binding EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Image
|
|
Margin="1,1,1,1"
|
|
Source="..\..\..\Ressources\Icons\Symbol Delete.png"
|
|
Stretch="Uniform" />
|
|
</Button>
|
|
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</Grid>
|
|
|
|
</localView:BeWoView> |