프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / DashBoard.xaml @ 80391351

이력 | 보기 | 이력해설 | 다운로드 (9.78 KB)

1
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
6
             xmlns:controls="clr-namespace:Markus.Service.StationController.Controls"
7
             xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel"
8
             xmlns:Data="clr-namespace:Markus.Service.StationController.Data"  
9
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
10
             xmlns:local="clr-namespace:Markus.Service.StationController.Views" x:Class="Markus.Service.StationController.Views.DashBoard"
11
             mc:Ignorable="d"  Background="White" DataContext="{DynamicResource DashBoardViewModel}" 
12
      d:DesignHeight="450" d:DesignWidth="1000">
13
    <UserControl.Resources>
14
        <SolidColorBrush x:Key="ActualBrush" Color="#FFCCCCCC" />
15
        <SolidColorBrush x:Key="TargetBrush" Color="#FF1B9DDE" />
16
        <Style x:Key="TextBlockCountryStyle" TargetType="TextBlock">
17
            <Setter Property="FontSize" Value="12" />
18
            <Setter Property="Foreground" Value="Black" />
19
            <Setter Property="Margin" Value="0 0 14 0" />
20
        </Style>
21
        <telerik:ChartPalette x:Key="ActualTargetChartPalette">
22
            <telerik:ChartPalette.GlobalEntries>
23
                <telerik:PaletteEntry Fill="{StaticResource ActualBrush}" />
24
                <telerik:PaletteEntry Fill="{StaticResource TargetBrush}" />
25
            </telerik:ChartPalette.GlobalEntries>
26
        </telerik:ChartPalette>
27
        <Style x:Key="TransparentTickStyle" TargetType="Rectangle" />
28
        <RectangleGeometry x:Key="SolidRectLegendGeometry" Rect="0 0 12 12" />
29
        <RectangleGeometry x:Key="LineSeriesLegendGeometry" Rect="0 5 12 2" />
30
        <VM:DashBoardViewModel x:Key="DashBoardViewModel"/>
31
        <controls:RightAlignedLabelStrategy x:Key="RightAlignedLabelStrategy"/>
32
    </UserControl.Resources>
33
    <i:Interaction.Triggers>
34
        <i:EventTrigger  EventName="Loaded">
35
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
36
        </i:EventTrigger>
37
        <i:EventTrigger  EventName="Unloaded">
38
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
39
        </i:EventTrigger>
40
    </i:Interaction.Triggers>
41
    <Grid>
42
        <Grid.RowDefinitions>
43
            <RowDefinition Height="Auto" />
44
            <RowDefinition Height="Auto" />
45
            <RowDefinition Height="*" />
46
        </Grid.RowDefinitions>
47
        <Grid.ColumnDefinitions>
48
            <ColumnDefinition/>
49
            <ColumnDefinition/>
50
        </Grid.ColumnDefinitions>
51
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
52
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
53
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
54
                  DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
55
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
56
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
57
                   DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
58
        </StackPanel>
59
        <StackPanel Grid.Row="1" Grid.ColumnSpan="2">
60
            <StackPanel Orientation="Horizontal">
61
                <TextBlock Text="CreateTime  " VerticalAlignment="Center" Width="102"/>
62
                <telerik:RadDateTimePicker x:Name="datePicker1" Width="200"
63
                                   InputMode="DateTimePicker"  
64
                                   VerticalAlignment="Center"
65
                                   HorizontalAlignment="Stretch"
66
                                   SelectedValue="{Binding SelectedCreateTimeBegin ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged }" >
67
                </telerik:RadDateTimePicker>
68
                <TextBlock Text="  ~  " VerticalAlignment="Center"/>
69
                <telerik:RadDateTimePicker x:Name="datePicker2"  Width="200"
70
                                   InputMode="DateTimePicker"  HorizontalAlignment="Stretch"
71
                                   VerticalAlignment="Center"
72
                                   SelectedValue="{Binding SelectedCreateTimeEnd ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
73
                                   Margin="0,1">
74
                </telerik:RadDateTimePicker>
75
                <Button Content="Clear" Margin="5"  Width="50" Height="20" HorizontalAlignment="Left" Command="{Binding RemoveCreateTimeFilterCommand, Mode=OneWay}"/>
76
            </StackPanel>
77
        </StackPanel>
78
        <Grid Grid.Row="2">
79
            <Grid.ColumnDefinitions>
80
                <ColumnDefinition Width="*" />
81
                <ColumnDefinition Width="Auto" />
82
            </Grid.ColumnDefinitions>
83
            <telerik:RadCartesianChart x:Name="chart" Palette="{StaticResource ActualTargetChartPalette}" MinHeight="90" MaxHeight="90" Margin="10 0 20 0" ClipToBounds="False">
84
                <telerik:RadCartesianChart.VerticalAxis>
85
                    <telerik:CategoricalAxis IsInverse="True" 
86
                                         MajorTickStyle="{StaticResource TransparentTickStyle}" 
87
                                         LineStroke="Transparent" 
88
                                         LabelStyle="{StaticResource TextBlockCountryStyle}" />
89
                </telerik:RadCartesianChart.VerticalAxis>
90
                <telerik:RadCartesianChart.HorizontalAxis>
91
                    <telerik:LinearAxis ShowLabels="False" ElementBrush="Transparent" />
92
                </telerik:RadCartesianChart.HorizontalAxis>
93
                <telerik:RadCartesianChart.Series>
94
                    <telerik:BarSeries CategoryBinding="Project_NO" 
95
                                   ValueBinding="Count" 
96
                                   ItemsSource="{Binding DashBoard, UpdateSourceTrigger=PropertyChanged}" 
97
                                   CombineMode="None" 
98
                                   ShowLabels="True" 
99
                                   ClipToPlotArea="False"
100
                                   >
101
                        <telerik:BarSeries.PointTemplate>
102
                            <DataTemplate>
103
                                <Rectangle Fill="{StaticResource ActualBrush}" Margin="0 0 0 3" />
104
                            </DataTemplate>
105
                        </telerik:BarSeries.PointTemplate>
106
                        <telerik:BarSeries.LegendSettings>
107
                            <telerik:SeriesLegendSettings Title="Count" MarkerGeometry="{StaticResource SolidRectLegendGeometry}" />
108
                        </telerik:BarSeries.LegendSettings>
109
                        <telerik:BarSeries.LabelDefinitions>
110
                            <telerik:ChartSeriesLabelDefinition Binding="Count" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
111
                        </telerik:BarSeries.LabelDefinitions>
112
                    </telerik:BarSeries>
113
                    <telerik:BarSeries CategoryBinding="Project_NO" 
114
                                   ValueBinding="ExceptionCount" 
115
                                   ItemsSource="{Binding DashBoard, UpdateSourceTrigger=PropertyChanged}" 
116
                                   CombineMode="None">
117
                        <telerik:BarSeries.PointTemplate>
118
                            <DataTemplate>
119
                                <Rectangle Fill="{StaticResource TargetBrush}" Height="2" VerticalAlignment="Bottom" />
120
                            </DataTemplate>
121
                        </telerik:BarSeries.PointTemplate>
122
                        <telerik:BarSeries.LegendSettings>
123
                            <telerik:SeriesLegendSettings Title="ExceptionCountrget" MarkerGeometry="{StaticResource LineSeriesLegendGeometry}" />
124
                        </telerik:BarSeries.LegendSettings>
125
                    </telerik:BarSeries>
126
                </telerik:RadCartesianChart.Series>
127
            </telerik:RadCartesianChart>
128

    
129
            <telerik:RadLegend Grid.Column="1" Grid.Row="1" Margin="24,4,0,0" MinWidth="76" Items="{Binding LegendItems, ElementName=chart}" />
130
        </Grid>
131
            
132
            
133
                <!--<telerik:RadCartesianChart x:Name="chart">
134
                    <telerik:RadCartesianChart.HorizontalAxis>
135
                        <telerik:LinearAxis/>
136
                    </telerik:RadCartesianChart.HorizontalAxis>
137

138
                    <telerik:RadCartesianChart.VerticalAxis>
139
                        <telerik:CategoricalAxis/>
140
                    </telerik:RadCartesianChart.VerticalAxis>
141

142
                    <telerik:RadCartesianChart.Series>
143
                        <telerik:BarSeries>
144

145
                            <telerik:BarSeries.DataPoints>
146
                            <telerik:CategoricalDataPoint Category="rk" Value="10"/>
147
                                <telerik:CategoricalDataPoint Category="나" Value="4"/>
148
                                <telerik:CategoricalDataPoint Category="다" Value="7"/>
149
                                <telerik:CategoricalDataPoint Category="라" Value="11"/>
150
                                <telerik:CategoricalDataPoint Category="마" Value="15"/>
151
                            </telerik:BarSeries.DataPoints>
152
                        </telerik:BarSeries>
153
                    </telerik:RadCartesianChart.Series>
154
                </telerik:RadCartesianChart>
155
            </Grid>-->
156
    </Grid>
157
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)