프로젝트

일반

사용자정보

개정판 80391351

ID80391351233f8e74a83641895c4ee0c99ad32d99
상위 e6e06e16
하위 c7955b40

semi 이(가) 4년 이상 전에 추가함

SelectedItems 수정

Change-Id: I942d91a7d78fbf05b2fb94fd782be9877423ffed

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/Views/DashBoard.xaml
10 10
             xmlns:local="clr-namespace:Markus.Service.StationController.Views" x:Class="Markus.Service.StationController.Views.DashBoard"
11 11
             mc:Ignorable="d"  Background="White" DataContext="{DynamicResource DashBoardViewModel}" 
12 12
      d:DesignHeight="450" d:DesignWidth="1000">
13
    <!--xmlns:sys="clr-namespace:System;assembly=mscorlib"-->
14 13
    <UserControl.Resources>
15 14
        <SolidColorBrush x:Key="ActualBrush" Color="#FFCCCCCC" />
16 15
        <SolidColorBrush x:Key="TargetBrush" Color="#FF1B9DDE" />
......
26 25
            </telerik:ChartPalette.GlobalEntries>
27 26
        </telerik:ChartPalette>
28 27
        <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 28
        <RectangleGeometry x:Key="SolidRectLegendGeometry" Rect="0 0 12 12" />
65

  
29
        <RectangleGeometry x:Key="LineSeriesLegendGeometry" Rect="0 5 12 2" />
66 30
        <VM:DashBoardViewModel x:Key="DashBoardViewModel"/>
31
        <controls:RightAlignedLabelStrategy x:Key="RightAlignedLabelStrategy"/>
67 32
    </UserControl.Resources>
68 33
    <i:Interaction.Triggers>
69 34
        <i:EventTrigger  EventName="Loaded">
......
100 65
                                   HorizontalAlignment="Stretch"
101 66
                                   SelectedValue="{Binding SelectedCreateTimeBegin ,Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged }" >
102 67
                </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 68
                <TextBlock Text="  ~  " VerticalAlignment="Center"/>
105 69
                <telerik:RadDateTimePicker x:Name="datePicker2"  Width="200"
106 70
                                   InputMode="DateTimePicker"  HorizontalAlignment="Stretch"
......
109 73
                                   Margin="0,1">
110 74
                </telerik:RadDateTimePicker>
111 75
                <Button Content="Clear" Margin="5"  Width="50" Height="20" HorizontalAlignment="Left" Command="{Binding RemoveCreateTimeFilterCommand, Mode=OneWay}"/>
112

  
113

  
114 76
            </StackPanel>
115 77
        </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" 
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" 
126 86
                                         MajorTickStyle="{StaticResource TransparentTickStyle}" 
127 87
                                         LineStroke="Transparent" 
128 88
                                         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}" 
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}" 
137 97
                                   CombineMode="None" 
138 98
                                   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}" 
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}" 
157 116
                                   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>
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>
166 152
                        </telerik:BarSeries>
167 153
                    </telerik:RadCartesianChart.Series>
168 154
                </telerik:RadCartesianChart>
169

  
170
                <telerik:RadLegend Grid.Column="1" Grid.Row="1" Items="{Binding LegendItems, ElementName=chart}" />
171
            </Grid>
172
        </StackPanel>
155
            </Grid>-->
173 156
    </Grid>
174 157
</UserControl>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)