741 lines
50 KiB
XML
741 lines
50 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Document.DokumenteView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:doc="clr-namespace:BeWo.View.Document"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxa="http://schemas.devexpress.com/winfx/2008/xaml/accordion"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
|
|
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:master="clr-namespace:BeWo.View.Master"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
|
|
<localView:BeWoView.Resources>
|
|
<Style TargetType="dxg:RowControl">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="AliceBlue" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<ContextMenu
|
|
x:Key="cm"
|
|
x:Name="contextMenu"
|
|
MenuItem.Click="ContextMenu_Click"
|
|
Opened="ContextMenu_Opened">
|
|
<MenuItem Header="Neuer Ordner">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\new.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="Umbenennen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\Rename24.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<Separator />
|
|
<MenuItem Header="Löschen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\Delete24.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
|
|
|
|
<ContextMenu
|
|
x:Key="templatecm"
|
|
x:Name="TemplateContextMenu"
|
|
MenuItem.Click="TemplateContextMenu_Click"
|
|
Opened="TemplateContextMenu_Opened">
|
|
<MenuItem Header="Neuer Ordner">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\Add24.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="Umbenennen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\Rename24.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<Separator />
|
|
<MenuItem Header="Neue Vorlage">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\DocumentWithAdd.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<Separator />
|
|
<MenuItem Header="Löschen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\Ressources\Icons\Delete24.png" />
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
<doc:DeleteButtonVisibilityConverter x:Key="DeleteButtonVisibilityConverter" />
|
|
<doc:EditButtonVisibilityConverter x:Key="EditButtonVisibilityConverter" />
|
|
|
|
</localView:BeWoView.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel
|
|
Margin="0,11,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\Folder.png">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1.3" ScaleY="1.3" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="-2" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
BorderThickness="0,0,0,0"
|
|
FontSize="22"
|
|
Foreground="{DynamicResource MainGroupBoxForegroundBrush}"
|
|
Text="Dokumente" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<TabControl Visibility="Visible">
|
|
<TabItem Visibility="Visible">
|
|
<TabItem.Header>
|
|
<TextBlock
|
|
Padding="3"
|
|
Text="{markup:Translate Alle Dokumente}"
|
|
TextElement.FontFamily="Microsoft Sans Serif"
|
|
TextElement.FontSize="16"
|
|
TextElement.Foreground="{StaticResource TabItemHotTextBrush}" />
|
|
</TabItem.Header>
|
|
|
|
<dxlc:LayoutControl Orientation="Horizontal">
|
|
<dxlc:LayoutGroup Width="300" dxlc:LayoutControl.AllowHorizontalSizing="True">
|
|
<Grid Margin="0,0,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label Margin="0,0,0,0" Content="Suche" />
|
|
<TextBox
|
|
x:Name="textbox_searchForFileName"
|
|
Grid.Column="1"
|
|
Height="20"
|
|
Margin="3,2,0,5"
|
|
HorizontalContentAlignment="Stretch"
|
|
BorderThickness="0,0,0,0"
|
|
KeyDown="TextBox_KeyDown"
|
|
TabIndex="0"
|
|
Template="{DynamicResource SearchTextBoxTemplate}" />
|
|
|
|
<dxg:TreeListControl
|
|
x:Name="documents_treeview_control"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,2,4"
|
|
VerticalAlignment="Stretch"
|
|
dx:ThemeManager.ThemeName="Office2010Black">
|
|
<dxg:TreeListControl.Columns>
|
|
<dxg:TreeListColumn
|
|
Width="300"
|
|
AllowSorting="False"
|
|
FieldName="Name">
|
|
<!--<dxg:TreeListColumn.CellStyle>
|
|
<Style TargetType="dxg:LightweightCellEditor" BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=LightweightCellStyle}}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#B1D6F0" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
<Setter Property="ToolTipService.ToolTip" Value="{Binding Path=RowData.Row.Text}" />
|
|
</Style>
|
|
</dxg:TreeListColumn.CellStyle>-->
|
|
</dxg:TreeListColumn>
|
|
</dxg:TreeListControl.Columns>
|
|
<dxg:TreeListControl.View>
|
|
<dxg:TreeListView
|
|
x:Name="DocumentsTreeView"
|
|
AllowEditing="False"
|
|
AutoWidth="True"
|
|
ContextMenu="{StaticResource cm}"
|
|
FocusedRowChanged="DocumentsTreeView_FocusedRowChanged"
|
|
HorizontalScrollbarVisibility="Auto"
|
|
KeyFieldName="{Binding DocumentTreeItemVM.DocTreeItemOid}"
|
|
LostFocus="DocumentsTreeView_LostFocus"
|
|
NodeExpanding="DocumentsTreeView_NodeExpanding"
|
|
ParentFieldName="Binding DocumentTreeItemVM.ParentOid"
|
|
PreviewMouseLeftButtonDown="DocumentsTreeView_PreviewMouseLeftButtonDown"
|
|
PrintNodeImages="True"
|
|
ShowColumnHeaders="False"
|
|
ShowHorizontalLines="False"
|
|
ShowIndicator="False"
|
|
ShowNodeImages="True"
|
|
ShowVerticalLines="False"
|
|
VerticalScrollbarVisibility="Auto">
|
|
<!--<dxg:TreeListView.RowStyle>
|
|
<Style BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=RowStyle}}" TargetType="dxg:rows">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#B1D6F0"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
</dxg:TreeListView.RowStyle>-->
|
|
</dxg:TreeListView>
|
|
</dxg:TreeListControl.View>
|
|
</dxg:TreeListControl>
|
|
|
|
</Grid>
|
|
</dxlc:LayoutGroup>
|
|
<dxlc:LayoutGroup dxlc:LayoutControl.AllowHorizontalSizing="True">
|
|
<Grid
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox
|
|
x:Name="GroupBoxDokumentenListe"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5"
|
|
Header=""
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Button
|
|
Name="button_uploadDocument"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Click="button_OpenUploadDocument_Click">
|
|
Datei hochladen
|
|
</Button>
|
|
<controls:PopupNonTopmost
|
|
x:Name="popup_UploadFiles"
|
|
Grid.Row="0"
|
|
Width="350"
|
|
Placement="MousePoint"
|
|
StaysOpen="True"
|
|
Topmost="False">
|
|
<Border
|
|
Padding="3"
|
|
Background="White"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1">
|
|
<GroupBox
|
|
x:Name="groupbox_uploadDocument"
|
|
Header="Dokument hochladen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
<Label VerticalAlignment="Center" Content="{markup:Translate Datei}" />
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_file"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_file_PopUpClick_1" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Top"
|
|
Content="Beschreibung" />
|
|
<TextBox
|
|
x:Name="textbox_beschreibung"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="50"
|
|
Margin="3" />
|
|
<Button
|
|
x:Name="button_uploadFile"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_uploadDocument_Click"
|
|
Content="Hochladen" />
|
|
<Button
|
|
x:Name="button_cancelFileUpload"
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_cancelFileUpload_Click"
|
|
Content="Abbrechen" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</controls:PopupNonTopmost>
|
|
<!--<Label Grid.Column="1" Margin="25 1 0 0" FontSize="13">Beschreibung</Label>
|
|
<TextBox Name="textbox_fileNotice" Margin="3" Height="23" Grid.Column="2" Grid.Row="0" />-->
|
|
|
|
<ProgressBar
|
|
Name="progressbar_upload"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="3"
|
|
Height="20"
|
|
Margin="2"
|
|
Maximum="1"
|
|
Minimum="0" />
|
|
<Label
|
|
Name="text_progress"
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Grid>
|
|
|
|
|
|
|
|
<!--<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 IsReadOnly="True" 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="Dokument hochladen" />
|
|
|
|
<ProgressBar Height="20" Margin="3" Name="progressbar_upload" Grid.Row="2" Grid.ColumnSpan="5" Minimum="0" Maximum="1" />
|
|
<Label VerticalAlignment="Center" Grid.Row="2" Grid.ColumnSpan="5" HorizontalAlignment="Center" Name="text_progress" />
|
|
</Grid>-->
|
|
|
|
</GroupBox>
|
|
<dxg:GridControl
|
|
x:Name="datagrid_documents"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="2,3,5,5"
|
|
DataSource="{Binding SelectedItem.Files, ElementName=treeview}">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FieldName="FileName"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True"
|
|
Visible="{Binding Converter={StaticResource DeleteButtonVisibilityConverter}}">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="20"
|
|
Height="20"
|
|
VerticalAlignment="Center"
|
|
Click="DeleteButton_Click"
|
|
Content="r"
|
|
FontFamily="Webdings"
|
|
ToolTip="Löschen" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True"
|
|
Visible="{Binding Converter={StaticResource EditButtonVisibilityConverter}}">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="20"
|
|
Height="23"
|
|
VerticalAlignment="Center"
|
|
Click="EditButton_Click"
|
|
Content="!"
|
|
FontFamily="Wingdings"
|
|
ToolTip="Bearbeiten" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="InsertedOn"
|
|
Header="hinterlegt am" />
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="InsertedBy"
|
|
Header="hinterlegt von" />
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="FileName"
|
|
Header="Dateiname" />
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="Description"
|
|
Header="Beschreibung" />
|
|
<dxg:GridColumn
|
|
x:Name="ColumnDownload"
|
|
Width="100"
|
|
MinWidth="90"
|
|
FieldName="URL"
|
|
Header="Herunterladen">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock>
|
|
<Hyperlink
|
|
NavigateUri="{Binding Path=Value, Converter={StaticResource DownloadURLConverter}}"
|
|
RequestNavigate="Hyperlink_OnRequestNavigate"
|
|
TargetName="inexistent">
|
|
<TextBlock Text="herunterladen" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
x:Name="DocumentTableView"
|
|
AutoWidth="false"
|
|
NavigationStyle="Cell"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid>
|
|
</dxlc:LayoutGroup>
|
|
</dxlc:LayoutControl>
|
|
<!-- Hier kommt das Dokumentenzeug hin wenn Templates wieder angeschaltet werden/ -->
|
|
|
|
</TabItem>
|
|
|
|
|
|
|
|
<TabItem Selector.IsSelected="True">
|
|
<TabItem.Header>
|
|
<TextBlock
|
|
Padding="3"
|
|
Text="{markup:Translate Vorlagen}"
|
|
TextElement.FontFamily="Microsoft Sans Serif"
|
|
TextElement.FontSize="16"
|
|
TextElement.Foreground="{StaticResource TabItemHotTextBrush}" />
|
|
</TabItem.Header>
|
|
<dxlc:LayoutControl Orientation="Horizontal">
|
|
<dxlc:LayoutGroup Width="300" dxlc:LayoutControl.AllowHorizontalSizing="True">
|
|
<Grid Margin="0,0,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<dxg:TreeListControl
|
|
x:Name="template_treeview_control"
|
|
Grid.Column="0"
|
|
Margin="2,3,2,5"
|
|
VerticalAlignment="Stretch"
|
|
dx:ThemeManager.ThemeName="Office2010Black"
|
|
DefaultSorting="Name">
|
|
<dxg:TreeListControl.Columns>
|
|
<dxg:TreeListColumn
|
|
AllowEditing="False"
|
|
AllowSorting="True"
|
|
FieldName="Name">
|
|
<dxg:TreeListColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<dxe:TextEdit
|
|
x:Name="PART_Editor"
|
|
AcceptsReturn="False"
|
|
AcceptsTab="False"
|
|
EditMode="InplaceActive"
|
|
SelectAllOnGotFocus="True"
|
|
SelectAllOnMouseUp="True"
|
|
Text="{Binding Path=DataContext.RowData.Row.Name, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}"
|
|
TextTrimming="WordEllipsis"
|
|
TextWrapping="NoWrap" />
|
|
</DataTemplate>
|
|
</dxg:TreeListColumn.CellTemplate>
|
|
</dxg:TreeListColumn>
|
|
</dxg:TreeListControl.Columns>
|
|
<dxg:TreeListControl.View>
|
|
<dxg:TreeListView
|
|
x:Name="TemplateTreeView"
|
|
AllowEditing="True"
|
|
AutoExpandOnDrag="True"
|
|
AutoWidth="True"
|
|
ContextMenu="{StaticResource templatecm}"
|
|
FocusedRowChanged="TemplateTreeView_FocusedRowChanged"
|
|
HorizontalScrollbarVisibility="Auto"
|
|
KeyFieldName="{Binding DocumentTreeItemVM.DocTreeItemOid}"
|
|
LostFocus="TemplateTreeView_LostFocus"
|
|
NavigationStyle="Cell"
|
|
NodeExpanding="templateTreeListView_NodeExpanding"
|
|
ParentFieldName="Binding DocumentTreeItemVM.ParentOid"
|
|
PreviewMouseLeftButtonDown="TemplateTreeView_PreviewMouseButtonDown"
|
|
PreviewMouseRightButtonDown="TemplateTreeView_PreviewMouseButtonDown"
|
|
PrintNodeImages="True"
|
|
ShowColumnHeaders="False"
|
|
ShowHorizontalLines="False"
|
|
ShowIndicator="False"
|
|
ShowNodeImages="True"
|
|
ShowVerticalLines="False"
|
|
VerticalScrollbarVisibility="Auto"
|
|
/>
|
|
</dxg:TreeListControl.View>
|
|
</dxg:TreeListControl>
|
|
<!--
|
|
<Grid Grid.Column="2" Grid.Row="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox Grid.ColumnSpan="2" Padding="5" Style="{StaticResource ObjectEditGroupBox}" Header="Neue Datei hochladen">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Button Name="button_uploadDocument" Click="popupedit_file_PopUpClick" Grid.Column="0" Grid.Row="0">Datei hochladen</Button>
|
|
<Label Grid.Column="1" Margin="25 1 0 0" FontSize="13">Beschreibung</Label>
|
|
<TextBox Name="textbox_fileNotice" Margin="3" Height="23" Grid.Column="2" Grid.Row="0" />
|
|
|
|
<ProgressBar Height="20" Margin="2" Name="progressbar_upload" Grid.Row="1" Grid.ColumnSpan="3" Minimum="0" Maximum="1" />
|
|
<Label HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="2" Grid.ColumnSpan="3" Name="text_progress" />
|
|
</Grid>
|
|
-->
|
|
|
|
<!--
|
|
<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 IsReadOnly="True" 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="Dokument hochladen" />
|
|
|
|
<ProgressBar Height="20" Margin="3" Name="progressbar_upload" Grid.Row="2" Grid.ColumnSpan="5" Minimum="0" Maximum="1" />
|
|
<Label VerticalAlignment="Center" Grid.Row="2" Grid.ColumnSpan="5" HorizontalAlignment="Center" Name="text_progress" />
|
|
</Grid>
|
|
|
|
|
|
</GroupBox>
|
|
-->
|
|
|
|
</Grid>
|
|
</dxlc:LayoutGroup>
|
|
<dxlc:LayoutGroup dxlc:LayoutControl.AllowHorizontalSizing="True">
|
|
<GroupBox
|
|
x:Name="GroupBoxTemplateList"
|
|
Grid.ColumnSpan="2"
|
|
Padding="5"
|
|
Header=""
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<dxg:GridControl
|
|
x:Name="datagrid_templates"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Margin="2,3,5,5">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FieldName="FileName"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="20"
|
|
Height="20"
|
|
Margin="1"
|
|
VerticalAlignment="Center"
|
|
Click="TemplateDeleteButton_Click"
|
|
Content="r"
|
|
FontFamily="Webdings" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="Name"
|
|
Header="Name" />
|
|
<dxg:GridColumn
|
|
Width="*"
|
|
AllowEditing="False"
|
|
FieldName="Beschreibung"
|
|
Header="Beschreibung" />
|
|
<dxg:GridColumn
|
|
Width="80"
|
|
FieldName="FileEdit"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="75"
|
|
Height="23"
|
|
VerticalAlignment="Center"
|
|
Click="EditTemplate_Click"
|
|
Content="Bearbeiten" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<!--<dxg:GridColumn
|
|
Width="80"
|
|
FieldName="PrintFile"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="75"
|
|
Height="23"
|
|
VerticalAlignment="Center"
|
|
Click="PrintTemplate_Click"
|
|
Content="Drucken" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>-->
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
x:Name="TemplateTableView"
|
|
AutoWidth="false"
|
|
NavigationStyle="Row"
|
|
RowDoubleClick="TemplateTableView_RowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
</dxlc:LayoutGroup>
|
|
</dxlc:LayoutControl>
|
|
</TabItem>
|
|
</TabControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
</uc:ShadowChrome>
|
|
|
|
</Grid>
|
|
|
|
</localView:BeWoView> |