프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (10.7 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
    <!--xmlns:sys="clr-namespace:System;assembly=mscorlib"-->
14
    <UserControl.Resources>
15
        <SolidColorBrush x:Key="ActualBrush" Color="#FFCCCCCC" />
16
        <SolidColorBrush x:Key="TargetBrush" Color="#FF1B9DDE" />
17
        <Style x:Key="TextBlockCountryStyle" TargetType="TextBlock">
18
            <Setter Property="FontSize" Value="12" />
19
            <Setter Property="Foreground" Value="Black" />
20
            <Setter Property="Margin" Value="0 0 14 0" />
21
        </Style>
22
        <telerik:ChartPalette x:Key="ActualTargetChartPalette">
23
            <telerik:ChartPalette.GlobalEntries>
24
                <telerik:PaletteEntry Fill="{StaticResource ActualBrush}" />
25
                <telerik:PaletteEntry Fill="{StaticResource TargetBrush}" />
26
            </telerik:ChartPalette.GlobalEntries>
27
        </telerik:ChartPalette>
28
        <Style x:Key="TransparentTickStyle" TargetType="Rectangle" />
29

    
30
        <SolidColorBrush x:Key="ChartBrush1" Color="#FF8EC441" />
31
        <SolidColorBrush x:Key="ChartBrush2" Color="#FF1B9DDE" />
32
        <SolidColorBrush x:Key="ChartBrush3" Color="#FFF59700" />
33
        <SolidColorBrush x:Key="ChartBrush4" Color="#FFD4DF32" />
34

    
35
        <Style x:Key="TextBlockLegendStyle" TargetType="TextBlock">
36
            <Setter Property="FontFamily" Value="Segoe UI" />
37
            <Setter Property="FontSize" Value="12" />
38
            <Setter Property="Foreground" Value="#FF767676" />
39
            <Setter Property="Margin" Value="4,2,4,2" />
40
        </Style>
41
        <Style TargetType="telerik:RadLegend" > <!--BasedOn="{StaticResource RadLegendStyle}">-->
42
            <Setter Property="Margin" Value="10,6,10,0" />
43
            <Setter Property="FontFamily" Value="Segoe UI" />
44
            <Setter Property="FontSize" Value="11" />
45
            <Setter Property="Foreground" Value="#FF767676" />
46
            <Setter Property="MinWidth" Value="75"/>
47
        </Style>
48

    
49
        <ControlTemplate x:Key="GridViewCellTemplate" TargetType="telerik:GridViewCell">
50
            <ContentPresenter x:Name="PART_ContentPresenter"
51
                                                Margin="{TemplateBinding Padding}"
52
                                                Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"
53
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
54
                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
55
        </ControlTemplate>
56

    
57
        <Style TargetType="telerik:GridViewCell" >  
58
            <Setter Property="Template" Value="{StaticResource GridViewCellTemplate}"/>
59
        </Style>
60

    
61

    
62

    
63
        <RectangleGeometry x:Key="LineSeriesLegendGeometry" Rect="0 5 12 2" />
64
        <RectangleGeometry x:Key="SolidRectLegendGeometry" Rect="0 0 12 12" />
65

    
66
        <VM:DashBoardViewModel x:Key="DashBoardViewModel"/>
67
    </UserControl.Resources>
68
    <i:Interaction.Triggers>
69
        <i:EventTrigger  EventName="Loaded">
70
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
71
        </i:EventTrigger>
72
        <i:EventTrigger  EventName="Unloaded">
73
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
74
        </i:EventTrigger>
75
    </i:Interaction.Triggers>
76
    <Grid>
77
        <Grid.RowDefinitions>
78
            <RowDefinition Height="Auto" />
79
            <RowDefinition Height="Auto" />
80
            <RowDefinition Height="*" />
81
        </Grid.RowDefinitions>
82
        <Grid.ColumnDefinitions>
83
            <ColumnDefinition/>
84
            <ColumnDefinition/>
85
        </Grid.ColumnDefinitions>
86
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
87
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
88
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
89
                  DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
90
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
91
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
92
                   DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
93
        </StackPanel>
94
        <StackPanel Grid.Row="1" Grid.ColumnSpan="2">
95
            <StackPanel Orientation="Horizontal">
96
                <TextBlock Text="CreateTime  " VerticalAlignment="Center" Width="102"/>
97
                <telerik:RadDateTimePicker x:Name="datePicker1" Width="200"
98
                                   InputMode="DateTimePicker"  
99
                                   VerticalAlignment="Center"
100
                                   HorizontalAlignment="Stretch"
101
                                   SelectedValue="{Binding SelectedCreateTimeBegin ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged }" >
102
                </telerik:RadDateTimePicker>
103
                <!--<DatePicker Text="{Binding OpenStartTime, StringFormat='yy.mm.dd HH:mm:ss' ,RelativeSource={RelativeSource AncestorType={x:Type DatePicker}}}" SelectedDate="{Binding SelectedOpenTime}" Width="124" SelectedDateFormat="Long" Margin="0,-1,0,1"/>-->
104
                <TextBlock Text="  ~  " VerticalAlignment="Center"/>
105
                <telerik:RadDateTimePicker x:Name="datePicker2"  Width="200"
106
                                   InputMode="DateTimePicker"  HorizontalAlignment="Stretch"
107
                                   VerticalAlignment="Center"
108
                                   SelectedValue="{Binding SelectedCreateTimeEnd ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
109
                                   Margin="0,1">
110
                </telerik:RadDateTimePicker>
111
                <Button Content="Clear" Margin="5"  Width="50" Height="20" HorizontalAlignment="Left" Command="{Binding RemoveCreateTimeFilterCommand, Mode=OneWay}"/>
112

    
113

    
114
            </StackPanel>
115
        </StackPanel>
116
        <StackPanel Orientation="Vertical" Grid.Row="2" Grid.Column="0" >
117
            <TextBlock Text="Convert PDF" HorizontalAlignment="Stretch" FontSize="12" FontFamily="Segoe UI" />
118
            <Grid x:Name="LayoutRoot">
119
                <Grid.ColumnDefinitions>
120
                    <ColumnDefinition Width="*" />
121
                    <ColumnDefinition Width="Auto" />
122
                </Grid.ColumnDefinitions>
123
                <telerik:RadCartesianChart x:Name="chart" Palette="{StaticResource ActualTargetChartPalette}" ClipToBounds="False" >
124
                    <telerik:RadCartesianChart.VerticalAxis>
125
                        <telerik:CategoricalAxis IsInverse="True" 
126
                                         MajorTickStyle="{StaticResource TransparentTickStyle}" 
127
                                         LineStroke="Transparent" 
128
                                         LabelStyle="{StaticResource TextBlockCountryStyle}" />
129
                    </telerik:RadCartesianChart.VerticalAxis>
130
                    <telerik:RadCartesianChart.HorizontalAxis>
131
                        <telerik:LinearAxis ShowLabels="True" ElementBrush="Transparent" />
132
                    </telerik:RadCartesianChart.HorizontalAxis>
133
                    <telerik:RadCartesianChart.Series>
134
                        <telerik:BarSeries CategoryBinding="{Binding Project_NO}" 
135
                                   ValueBinding="{Binding Count}" 
136
                                   ItemsSource="{Binding ExceptionCount, Mode=TwoWay}" 
137
                                   CombineMode="None" 
138
                                   ShowLabels="True" 
139
                                   ClipToPlotArea="False">
140
                            <!--sdk:ChartAnimationUtilities.CartesianAnimation="Rise">-->
141
                            <telerik:BarSeries.PointTemplate>
142
                                <DataTemplate>
143
                                    <Rectangle Fill="{StaticResource ActualBrush}" Margin="0 0 0 3" />
144
                                </DataTemplate>
145
                            </telerik:BarSeries.PointTemplate>
146
                            <telerik:BarSeries.LegendSettings>
147
                                <telerik:SeriesLegendSettings Title="Count" MarkerGeometry="{StaticResource SolidRectLegendGeometry}" />
148
                            </telerik:BarSeries.LegendSettings>
149
                            <telerik:BarSeries.LabelDefinitions>
150
                                <telerik:ChartSeriesLabelDefinition Binding="Count" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" />
151
                                <!--Strategy="{StaticResource RightAlignedLabelStrategy}" />-->
152
                            </telerik:BarSeries.LabelDefinitions>
153
                        </telerik:BarSeries>
154
                        <telerik:BarSeries CategoryBinding="{Binding Project_NO}" 
155
                                   ValueBinding="{Binding Count}" 
156
                                   ItemsSource="{Binding ConvertCount, Mode=TwoWay}" 
157
                                   CombineMode="None">
158
                            <telerik:BarSeries.PointTemplate>
159
                                <DataTemplate>
160
                                    <Rectangle Fill="{StaticResource TargetBrush}" Height="2" VerticalAlignment="Bottom" />
161
                                </DataTemplate>
162
                            </telerik:BarSeries.PointTemplate>
163
                            <telerik:BarSeries.LegendSettings>
164
                                <telerik:SeriesLegendSettings Title="target" MarkerGeometry="{StaticResource LineSeriesLegendGeometry}" />
165
                            </telerik:BarSeries.LegendSettings>
166
                        </telerik:BarSeries>
167
                    </telerik:RadCartesianChart.Series>
168
                </telerik:RadCartesianChart>
169

    
170
                <telerik:RadLegend Grid.Column="1" Grid.Row="1" Items="{Binding LegendItems, ElementName=chart}" />
171
            </Grid>
172
        </StackPanel>
173
    </Grid>
174
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)