101 lines
7.1 KiB
XML
101 lines
7.1 KiB
XML
<localView:BeWoView x:Class="BeWo.View.Document.TemplatePrintSelection"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localViewControls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
|
|
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
|
|
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
|
|
<TabControl>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<TextBlock Text="{markup:Translate Ein Element}" TextElement.FontSize="16" TextElement.Foreground="{StaticResource TabItemHotTextBrush}" TextElement.FontFamily="Microsoft Sans Serif" Padding="3"></TextBlock>
|
|
</TabItem.Header>
|
|
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<WrapPanel HorizontalAlignment="Left" Margin="5" Grid.Row="0">
|
|
<CheckBox Content="Dokument abspeichern" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" ></CheckBox>
|
|
</WrapPanel>
|
|
|
|
<WrapPanel HorizontalAlignment="Right" Margin="5" Grid.Row="0">
|
|
<Label Margin="0 0 5 0" Content="Auswahl"/>
|
|
<ComboBox x:Name="combobox_elementList" Width="150" MaxDropDownHeight="400" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionChanged="combobox_elementList_SelectionChanged"></ComboBox>
|
|
</WrapPanel>
|
|
|
|
<dxg:TreeListControl x:Name="treelistcontrol_folderStructureForSelection" Grid.Row="1" DefaultSorting="Name" Margin="2,3,5,5" VerticalAlignment="Stretch" Visibility="Collapsed">
|
|
<dxg:TreeListControl.Columns>
|
|
<dxg:TreeListColumn FieldName="Name" AllowSorting="True"/>
|
|
</dxg:TreeListControl.Columns>
|
|
<dxg:TreeListControl.View>
|
|
<dxg:TreeListView x:Name="DocumentsTreeView_folderStructureForSelection" ShowColumnHeaders="False" ShowIndicator="False" ShowHorizontalLines="False" ShowVerticalLines="False"
|
|
FocusedRowChanged="DocumentsTreeView_FocusedRowChanged" PreviewMouseLeftButtonDown="DocumentsTreeView_folderStructureForSelection_PreviewMouseLeftButtonDown"
|
|
NodeExpanding="DocumentsTreeView_NodeExpanding" AllowEditing="False" ShowNodeImages="True" PrintNodeImages="True"
|
|
KeyFieldName="{Binding DocumentTreeItemVM.DocTreeItemOid}" ParentFieldName="Binding DocumentTreeItemVM.ParentOid">
|
|
</dxg:TreeListView>
|
|
</dxg:TreeListControl.View>
|
|
</dxg:TreeListControl>
|
|
|
|
<WrapPanel Grid.Row="2" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0 50 5 5">
|
|
<Button x:Name="Button_Cancel_OnlyOne" Content="Abbrechen" Click="Button_Cancel_Click" Margin="0 0 5 0" />
|
|
<Button x:Name="Button_CreateTemplateBasedDocument_OnlyOne" Content="Dokument erstellen" Click="Button_CreateTemplateForSelection_Click" />
|
|
</WrapPanel>
|
|
</Grid>
|
|
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<TextBlock Text="{markup:Translate Mehrere Elemente}" TextElement.FontSize="16" TextElement.Foreground="{StaticResource TabItemHotTextBrush}" TextElement.FontFamily="Microsoft Sans Serif" Padding="3"></TextBlock>
|
|
</TabItem.Header>
|
|
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<dxg:GridControl Grid.Row="0" Margin="2,3,5,5" x:Name="datagrid_enabled_for_template" Grid.Column="1" SelectionMode="None">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn FieldName="Selected" AllowEditing="True" Header="Auswahl" Width="60">
|
|
<!--<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<dxe:CheckEdit IsEnabled="True" Margin="23 0 0 0" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>-->
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="LastName" AllowEditing="False" Header="Nachname" Width="*"/>
|
|
<dxg:GridColumn FieldName="FirstName" AllowEditing="False" Header="Vorname" Width="*"/>
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView AutoWidth="false" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" x:Name="EnabledForTemplatesTableView"/>
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
<WrapPanel Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="5">
|
|
<Button x:Name="Button_SelectAll" Click="Button_SelectAll_Click" Content="Alle markieren" Margin="0 0 5 0" />
|
|
<Button x:Name="Button_UnselectAll" Click="Button_UnselectAll_Click" Content="Alle abwählen" Margin="0 0 5 0" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel Grid.Row="2" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0 50 5 5">
|
|
<Button x:Name="Button_Cancel" Content="Abbrechen" Click="Button_Cancel_Click" Margin="0 0 5 0" />
|
|
<Button x:Name="Button_CreateTemplateBasedDocument" Content="Dokument für Auswahl erstellen" Click="Button_CreateTemplateBasedDocument_Click" />
|
|
<!--<Button x:Name="Button_CreateTemplateBasedDocumentForAll" Content="Dokument für alle erstellen" Click="Button_CreateTemplateBasedDocumentForAll_Click" Margin="5 0 0 0"/>-->
|
|
</WrapPanel>
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
</localView:BeWoView> |