small issues
This commit is contained in:
parent
7a7e7aa485
commit
1999ab5de3
5 changed files with 49 additions and 40 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
<Image Source="/Images/EPD-MK3.png" VerticalAlignment="Center" Stretch="None" />
|
<Image Source="/Images/EPD-MK3.png" VerticalAlignment="Center" Stretch="None" />
|
||||||
<Run BaselineAlignment="Center">eDos EPD station</Run>
|
<Run BaselineAlignment="Center">eDos EPD station</Run>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Paragraph>2021 Version
|
<Paragraph>2021-2022 Version
|
||||||
<TextBlock Name="aVersion" Text="1.1" />
|
<TextBlock Name="aVersion" Text="1.1" />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Table BorderBrush="#FF1E8CED" BorderThickness="1" >
|
<Table BorderBrush="#FF1E8CED" BorderThickness="1" >
|
||||||
|
|
|
||||||
|
|
@ -124,43 +124,50 @@
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Stretch" >
|
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Stretch" >
|
||||||
<StackPanel>
|
<Border MaxHeight="700">
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Visible" Style="{Binding Mode=OneWay, Source={StaticResource CustomScrollViewer}}" MaxHeight="753" Name="scrollTask" Visibility="Visible" >
|
<ScrollViewer VerticalScrollBarVisibility="Visible" Name="scrollTask" Visibility="Visible" >
|
||||||
<ListBox ItemsSource="{Binding Mode=OneWay}" SelectedValuePath="ID_Task" SelectionChanged="ListBox_SelectionChanged" ScrollViewer.CanContentScroll="False" >
|
<ListBox ItemsSource="{Binding Mode=OneWay}" SelectedValuePath="ID_Task" SelectionChanged="ListBox_SelectionChanged" ScrollViewer.CanContentScroll="False" >
|
||||||
<ListBox.ItemsPanel >
|
<ListBox.ItemContainerStyle>
|
||||||
<ItemsPanelTemplate >
|
<Style TargetType="{x:Type ListBoxItem}">
|
||||||
<telerik:RadUniformGrid Columns="3" IsItemsHost="True" />
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||||
</ItemsPanelTemplate>
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||||
</ListBox.ItemsPanel>
|
</Style>
|
||||||
<ListBox.ItemTemplate>
|
</ListBox.ItemContainerStyle>
|
||||||
<DataTemplate>
|
<ListBox.ItemsPanel >
|
||||||
<StackPanel Orientation="Horizontal" TextBlock.FontSize="20" Margin="5,5,5,5" Height="20" >
|
<ItemsPanelTemplate >
|
||||||
<TextBlock Text="{Binding TaskType_CODE}" Width="60" TextWrapping="NoWrap" FontSize="18" >
|
<telerik:RadUniformGrid Columns="3" IsItemsHost="True" />
|
||||||
<TextBlock.Style>
|
</ItemsPanelTemplate>
|
||||||
<Style TargetType="TextBlock">
|
</ListBox.ItemsPanel>
|
||||||
<Style.Triggers>
|
<ListBox.ItemTemplate>
|
||||||
<DataTrigger Binding="{Binding EPDRad}" Value="BG">
|
<DataTemplate>
|
||||||
<Setter Property="Background" Value="LightGray"></Setter>
|
<StackPanel Orientation="Horizontal" TextBlock.FontSize="20" Margin="5,5,5,5" Height="20" >
|
||||||
</DataTrigger>
|
<TextBlock Text="{Binding TaskType_CODE}" Width="60" TextWrapping="NoWrap" FontSize="18" HorizontalAlignment="Left" >
|
||||||
<DataTrigger Binding="{Binding EPDRad}" Value="NG">
|
<TextBlock.Style>
|
||||||
<Setter Property="Background" Value="Black"></Setter>
|
<Style TargetType="TextBlock">
|
||||||
<Setter Property="Foreground" Value="White"></Setter>
|
<Style.Triggers>
|
||||||
</DataTrigger>
|
<DataTrigger Binding="{Binding EPDRad}" Value="BG">
|
||||||
</Style.Triggers>
|
<Setter Property="Background" Value="LightGray"></Setter>
|
||||||
</Style>
|
</DataTrigger>
|
||||||
</TextBlock.Style>
|
<DataTrigger Binding="{Binding EPDRad}" Value="NG">
|
||||||
</TextBlock>
|
<Setter Property="Background" Value="Black"></Setter>
|
||||||
<TextBlock Text="{Binding Task_Name}" Width="410" FontSize="17" TextWrapping="Wrap" />
|
<Setter Property="Foreground" Value="White"></Setter>
|
||||||
</StackPanel>
|
</DataTrigger>
|
||||||
</DataTemplate>
|
</Style.Triggers>
|
||||||
</ListBox.ItemTemplate>
|
</Style>
|
||||||
</ListBox>
|
</TextBlock.Style>
|
||||||
<!--<telerik:RadMultiColumnComboBox DisplayMemberPath="Task_Name" Width="700" HorizontalAlignment="Stretch" >
|
</TextBlock>
|
||||||
|
<TextBlock Text="{Binding Task_Name}" Width="410" FontSize="17" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="10,0,0,0" />
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListBox.ItemTemplate>
|
||||||
|
</ListBox>
|
||||||
|
<!--<telerik:RadMultiColumnComboBox DisplayMemberPath="Task_Name" Width="700" HorizontalAlignment="Stretch" >
|
||||||
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
||||||
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding}" />
|
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding}" />
|
||||||
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
|
||||||
</telerik:RadMultiColumnComboBox>-->
|
</telerik:RadMultiColumnComboBox>-->
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
<Grid Name="numPanel" Width="600" Height="300" Visibility="Collapsed" >
|
<Grid Name="numPanel" Width="600" Height="300" Visibility="Collapsed" >
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition />
|
<RowDefinition />
|
||||||
|
|
@ -196,7 +203,7 @@
|
||||||
<Button Content="<X" Grid.Row="4" Grid.Column="2" Name="numPanelDel" Tag="B" Click="numPanel_Click" />
|
<Button Content="<X" Grid.Row="4" Grid.Column="2" Name="numPanelDel" Tag="B" Click="numPanel_Click" />
|
||||||
<Button Content="ENTER" Grid.Row="4" Grid.Column="3" Name="numPanelEnter" Tag="E" Click="numPanel_Click" />
|
<Button Content="ENTER" Grid.Row="4" Grid.Column="3" Name="numPanelEnter" Tag="E" Click="numPanel_Click" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Margin="10,10,10,10" TextBlock.FontSize="12" TextBlock.LineHeight="12" Name="gridTaskSummary" >
|
<Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Margin="10,10,10,10" TextBlock.FontSize="12" TextBlock.LineHeight="12" Name="gridTaskSummary" >
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
|
@ -228,7 +235,7 @@
|
||||||
</Image>
|
</Image>
|
||||||
<TextBlock Grid.Row="1" Grid.Column="1" >
|
<TextBlock Grid.Row="1" Grid.Column="1" >
|
||||||
<Run FontWeight="Bold" Text="Task: "/>
|
<Run FontWeight="Bold" Text="Task: "/>
|
||||||
<Run Text="{Binding ID_Task,Mode=OneWay}" />
|
<Run Text="{Binding TaskType_CODE,Mode=OneWay}" />
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
<TextBlock Grid.Row="1" Grid.Column="2" >
|
<TextBlock Grid.Row="1" Grid.Column="2" >
|
||||||
<Run FontWeight="Bold" Text="Hp07Dose: "/>
|
<Run FontWeight="Bold" Text="Hp07Dose: "/>
|
||||||
|
|
|
||||||
|
|
@ -852,4 +852,6 @@ namespace eDosStation
|
||||||
MessageBox.Show("No PersID found on badge " + e.UID, "Error", MessageBoxButton.OK);
|
MessageBox.Show("No PersID found on badge " + e.UID, "Error", MessageBoxButton.OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Style="{Binding Mode=OneWay, Source={StaticResource CustomScrollViewer}}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,5 +51,5 @@ using System.Windows;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.5.0.0")]
|
[assembly: AssemblyVersion("2.5.1.0")]
|
||||||
[assembly: AssemblyFileVersion("2.5.0.0")]
|
[assembly: AssemblyFileVersion("2.5.1.0")]
|
||||||
|
|
|
||||||
|
|
@ -165,11 +165,11 @@
|
||||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition />
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ScrollContentPresenter Grid.Column="0" />
|
<ScrollContentPresenter Grid.Column="0" />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue