226 lines
11 KiB
XML
226 lines
11 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.Accounting.DigitalInvoiceOverview"
|
|
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: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
|
|
x:Name="groupbox_editArea"
|
|
Grid.Row="0"
|
|
Header="Rechnungsübersicht"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
|
|
<Grid Grid.IsSharedSizeScope="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<localView:YearMonthFilter
|
|
x:Name="yearMonthFilter"
|
|
Grid.Column="0"
|
|
Margin="3,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FilterSpanChanged="YearMonthFilter_FilterSpanChanged" />
|
|
<Button
|
|
x:Name="button_reload"
|
|
Grid.Column="1"
|
|
Width="80"
|
|
Height="24"
|
|
Margin="0,0,0,8"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Click="ReloadButton_OnClick"
|
|
Content="Aktualisieren" />
|
|
|
|
<dxg:GridControl
|
|
x:Name="datagrid_invoices"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
DataSource="{Binding VMList}">
|
|
<dxg:GridControl.Columns>
|
|
|
|
<dxg:GridColumn
|
|
x:Name="ColumnButtons"
|
|
Width="22"
|
|
MinWidth="20"
|
|
AllowEditing="False"
|
|
FieldName="ReportLink"
|
|
Header=" ">
|
|
<dxg:GridColumn.DisplayTemplate>
|
|
<ControlTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btn_report"
|
|
Width="20"
|
|
Height="20"
|
|
Margin="1"
|
|
VerticalAlignment="Center"
|
|
ToolTip="Codierung erzeugen">
|
|
<TextBlock Padding="0">
|
|
<Hyperlink
|
|
NavigateUri="{Binding DisplayText, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
|
|
RequestNavigate="Hyperlink_OnRequestNavigate"
|
|
TextDecorations="None"
|
|
TargetName="_NewWindow">
|
|
<TextBlock
|
|
Width="16"
|
|
Height="17"
|
|
Padding="0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontFamily="Webdings"
|
|
FontSize="15"
|
|
Foreground="#FFFFFF"
|
|
Text="¥" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Button>
|
|
</StackPanel>
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.DisplayTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
AllowEditing="False"
|
|
FieldName="TypeString"
|
|
Header="Art der Rechnung"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
AllowEditing="False"
|
|
FieldName="CustomerName"
|
|
Header="{markup:Translate Klient/in}"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
AllowEditing="False"
|
|
FieldName="AccountingPeriodString"
|
|
Header="Zeitraum"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
AllowEditing="False"
|
|
FieldName="InvoiceNumber"
|
|
Header="Nummer"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
MinWidth="70"
|
|
AllowEditing="False"
|
|
EditSettings="{dxe:DateSettings DisplayFormat=d}"
|
|
FieldName="InvoiceDate"
|
|
Header="Datum"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
AllowEditing="False"
|
|
FieldName="RecipientString"
|
|
Header="{markup:Translate EmpfängerSingular}"
|
|
ReadOnly="True" />
|
|
<!--<dxg:GridColumn FieldName="AccountingPeriodString" Header="Abrechnungszeitraum" />-->
|
|
<dxg:GridColumn
|
|
MinWidth="70"
|
|
AllowEditing="False"
|
|
FieldName="TotalAmount"
|
|
Header="Betrag"
|
|
ReadOnly="True">
|
|
<!--<dxg:GridColumn.CellStyle>
|
|
<Style TargetType="dxg:LightweightCellEditor">
|
|
<Setter Property="TextBlock.FontWeight" Value="Bold"/>
|
|
</Style>
|
|
</dxg:GridColumn.CellStyle>-->
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
MinWidth="200"
|
|
AllowEditing="False"
|
|
FieldName="Notice"
|
|
Header="Bemerkung"
|
|
ReadOnly="True" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
x:Name="gridView"
|
|
Margin="3,22,3,3"
|
|
AllowBestFit="True"
|
|
BestFitMode="Smart"
|
|
Loaded="gridView_Loaded"
|
|
NavigationStyle="Cell"
|
|
ScrollingMode="Smart"
|
|
ShowGroupPanel="False"
|
|
SnapsToDevicePixels="True" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
<Grid
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="5,2,5,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<WrapPanel>
|
|
<Label
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="{Binding FilterResultAmountSum, Converter={StaticResource StringFormatConverter}, ConverterParameter='{}Summe aller Rechnungen: {0:c}'}"
|
|
FontSize="14"
|
|
Foreground="{StaticResource GridPrintMenuLightBrush}" />
|
|
<Label
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content=" | "
|
|
FontSize="14"
|
|
Foreground="{StaticResource GridPrintMenuLightBrush}" />
|
|
<Label
|
|
x:Name="lblAmoutNotPaid"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="{Binding FilterResultAmountNotPaidSum, Converter={StaticResource StringFormatConverter}, ConverterParameter='{}Summe der noch offenen Rechnungen: {0:c}'}"
|
|
FontSize="14"
|
|
Foreground="{StaticResource GridPrintMenuLightBrush}" />
|
|
</WrapPanel>
|
|
</Grid>
|
|
|
|
<TextBox
|
|
x:Name="Output"
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
AcceptsReturn="True"
|
|
IsReadOnly="True"
|
|
Text="Test123\nn" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
</localView:BeWoView> |