|
|
|
@ -15,6 +15,7 @@
|
|
|
|
<UserControl.Resources>
|
|
|
|
<UserControl.Resources>
|
|
|
|
<classes:EnumEqualsConverter x:Key="EnumEqualsConverter"/>
|
|
|
|
<classes:EnumEqualsConverter x:Key="EnumEqualsConverter"/>
|
|
|
|
<classes:BoolToPowerConverter x:Key="BoolToPowerConverter"/>
|
|
|
|
<classes:BoolToPowerConverter x:Key="BoolToPowerConverter"/>
|
|
|
|
|
|
|
|
<classes:OneBasedConverter x:Key="OneBasedConverter"/>
|
|
|
|
</UserControl.Resources>
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
|
|
|
|
<Border BorderBrush="#2d374c" BorderThickness="2">
|
|
|
|
<Border BorderBrush="#2d374c" BorderThickness="2">
|
|
|
|
@ -23,6 +24,8 @@
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="70"/>
|
|
|
|
<RowDefinition Height="70"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<!--<Grid.Background>
|
|
|
|
<!--<Grid.Background>
|
|
|
|
@ -32,12 +35,14 @@
|
|
|
|
SelectedTab="{Binding SelectedTab, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
SelectedTab="{Binding SelectedTab, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<DataGrid x:Name="dgTanks" ItemsSource="{Binding TanksByTimes}"
|
|
|
|
<DataGrid x:Name="dgTanks" ItemsSource="{Binding TanksPager.PagedItems}"
|
|
|
|
Style="{StaticResource DataGridStyle}"
|
|
|
|
Style="{StaticResource DataGridStyle}"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}"
|
|
|
|
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}"
|
|
|
|
Grid.Row="1" Margin="15 0 15 40"
|
|
|
|
helper:DataGridAutoPageSizeBehavior.Enable="True"
|
|
|
|
ColumnWidth="*"
|
|
|
|
helper:DataGridAutoPageSizeBehavior.Pager="{Binding TanksPager}"
|
|
|
|
|
|
|
|
Grid.Row="1" Margin="15 0"
|
|
|
|
|
|
|
|
ColumnWidth="*" RowHeight="30"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGrid.Columns>
|
|
|
|
@ -176,9 +181,11 @@
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
|
|
<DataGrid ItemsSource="{Binding WaterQualityList}" x:Name="dgFilter"
|
|
|
|
<DataGrid ItemsSource="{Binding PagedItems}" x:Name="dgFilter"
|
|
|
|
Style="{StaticResource DataGridStyle}" ColumnWidth="*"
|
|
|
|
Style="{StaticResource DataGridStyle}"
|
|
|
|
Grid.Row="1" Margin="15 0 15 40"
|
|
|
|
ColumnWidth="*" RowHeight="30"
|
|
|
|
|
|
|
|
helper:DataGridAutoPageSizeBehavior.Enable="True"
|
|
|
|
|
|
|
|
Grid.Row="1" Margin="15 0 15 0"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}">
|
|
|
|
ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyle}">
|
|
|
|
@ -299,9 +306,11 @@
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
|
|
<DataGrid ItemsSource="{Binding WaterQualityList}" x:Name="dgSterilizer"
|
|
|
|
<DataGrid ItemsSource="{Binding PagedItems}" x:Name="dgSterilizer"
|
|
|
|
Style="{StaticResource DataGridStyle}" ColumnWidth="*"
|
|
|
|
Style="{StaticResource DataGridStyle}"
|
|
|
|
Grid.Row="1" Margin="15 0 15 40"
|
|
|
|
ColumnWidth="*" RowHeight="30"
|
|
|
|
|
|
|
|
helper:DataGridAutoPageSizeBehavior.Enable="True"
|
|
|
|
|
|
|
|
Grid.Row="1" Margin="15 0 15 0"
|
|
|
|
Background="Transparent"
|
|
|
|
Background="Transparent"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
|
@ -327,7 +336,89 @@
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" VerticalAlignment="Bottom">
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
|
|
|
<Grid.Style>
|
|
|
|
|
|
|
|
<Style TargetType="Grid">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding SelectedTab}" Value="{x:Static model:MonitorTab.Tank}">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Grid.Style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
|
|
|
|
<Button Command="{Binding TanksPager.FirstPageCommand}" Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="PageFirst"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button Command="{Binding TanksPager.PrevPageCommand}" Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="ChevronLeft"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="8,0">
|
|
|
|
|
|
|
|
<TextBlock Margin="0 5" Foreground="White"
|
|
|
|
|
|
|
|
Text="{Binding TanksPager.PageIndex, Mode=TwoWay,
|
|
|
|
|
|
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
|
|
|
|
|
|
Converter={StaticResource OneBasedConverter}}"/>
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding TanksPager.TotalPages, StringFormat=/ {0}}"
|
|
|
|
|
|
|
|
Foreground="White" VerticalAlignment="Center" Margin="6,0,0,0"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button Command="{Binding TanksPager.NextPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="ChevronRight"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button Command="{Binding TanksPager.LastPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="PageLast"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- (2) 필터/살균기 공용 페이지바 -->
|
|
|
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
|
|
|
<Grid.Style>
|
|
|
|
|
|
|
|
<Style TargetType="Grid">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding SelectedTab}" Value="{x:Static model:MonitorTab.Tank}">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Grid.Style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
|
|
|
|
<Button Command="{Binding FirstPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="PageFirst"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button Command="{Binding PrevPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="ChevronLeft"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="8,0">
|
|
|
|
|
|
|
|
<TextBlock Margin="0 5" Foreground="White"
|
|
|
|
|
|
|
|
Text="{Binding PageIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
|
|
|
|
|
|
|
|
Converter={StaticResource OneBasedConverter}}"/>
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding TotalPages, StringFormat=/ {0}}"
|
|
|
|
|
|
|
|
Foreground="White" VerticalAlignment="Center" Margin="6,0,0,0"/>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button Command="{Binding NextPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="ChevronRight"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button Command="{Binding LastPageCommand}"
|
|
|
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatLightBgButton}" Margin="4,0">
|
|
|
|
|
|
|
|
<md:PackIcon Kind="PageLast"/>
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="3" VerticalAlignment="Bottom">
|
|
|
|
<Button Name="btnVisibilityDown" Tag="down"
|
|
|
|
<Button Name="btnVisibilityDown" Tag="down"
|
|
|
|
Style="{StaticResource ImageButtonStyle}" Height="33" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
Style="{StaticResource ImageButtonStyle}" Height="33" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
VerticalAlignment="Bottom" HorizontalAlignment="Center" Visibility="{Binding BtnVisibilityDown}"
|
|
|
|
VerticalAlignment="Bottom" HorizontalAlignment="Center" Visibility="{Binding BtnVisibilityDown}"
|
|
|
|
|