프로젝트

일반

사용자정보

개정판 95e7bd84

ID95e7bd8431fcf028c86da386202c28ff956b654e
상위 cdb2c0a2
하위 ad3c4ac3

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

수정사항 & Add Dialog validation 하는 중

Change-Id: Id53bbd718ea1cc5aebfc97f0216fe6a3f464ee00

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/Views/DashBoard.xaml
14 14
             mc:Ignorable="d"  Background="White" DataContext="{DynamicResource DashBoardViewModel}" 
15 15
      d:DesignHeight="450" d:DesignWidth="1000">
16 16
    <UserControl.Resources>
17
        <Style TargetType="telerik:GridViewCell" x:Key="StretchCellStyle">
18
            <Setter Property="Margin" Value="0"/>
19
            <Setter Property="Padding" Value="0"/>
20
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
21
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
22
        </Style>
23
        <Style TargetType="{x:Type telerik:GridViewCell}" x:Key="OriginalFileGridViewCell">
24
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
25
        </Style>
26
        <Style x:Key="axisLabelStyle" TargetType="TextBlock">
27
            <Setter Property="FontFamily" Value="Segoe UI" />
28
        </Style>
17 29
        <SolidColorBrush x:Key="ActualBrush" Color="#FFCCCCCC" />
18 30
        <SolidColorBrush x:Key="TargetBrush" Color="#FF1B9DDE" />
19 31
        <Style x:Key="TextBlockCountryStyle" TargetType="TextBlock">
20 32
            <Setter Property="FontSize" Value="12" />
21 33
            <Setter Property="Foreground" Value="Black" />
22
            <Setter Property="Margin" Value="0 0 14 0" />
34
            <Setter Property="Margin" Value="0 0 40 0" />
35
        </Style>
36
        <Style TargetType="{x:Type controls:RowIndexColumn}">
37
            <Setter Property="TextAlignment" Value="Center"/>
38
        </Style>
39
        <Style x:Key="TextBlockCountryStyle_Exception" TargetType="TextBlock">
40
            <Setter Property="FontSize" Value="12" />
41
            <Setter Property="Foreground" Value="Blue" />
42
            <Setter Property="Margin" Value="0 0 0 0" />
23 43
        </Style>
24 44
        <telerik:ChartPalette x:Key="ActualTargetChartPalette">
25 45
            <telerik:ChartPalette.GlobalEntries>
......
32 52
        <RectangleGeometry x:Key="LineSeriesLegendGeometry" Rect="0 5 12 2" />
33 53
        <VM:DashBoardViewModel x:Key="DashBoardViewModel"/>
34 54
        <controls:RightAlignedLabelStrategy x:Key="RightAlignedLabelStrategy"/>
55
        <DataTemplate x:Key="RowDetailsTemplate">
56
            <local:DataBaseViewInfo />
57
        </DataTemplate>
35 58
    </UserControl.Resources>
36 59
    <i:Interaction.Triggers>
37 60
        <i:EventTrigger  EventName="Loaded">
......
86 109
                    <ColumnDefinition Width="*" />
87 110
                    <ColumnDefinition Width="Auto" />
88 111
                </Grid.ColumnDefinitions>
89
                <telerik:RadCartesianChart x:Name="chart" Palette="{StaticResource ActualTargetChartPalette}" ClipToBounds="False" Margin="0,50,0,50">
112
                <Grid.RowDefinitions>
113
                    <RowDefinition Height="*"/>
114
                    <RowDefinition Height="Auto"/>
115
                </Grid.RowDefinitions>
116
                <telerik:RadCartesianChart x:Name="chart" Palette="{StaticResource ActualTargetChartPalette}" ClipToBounds="False" Margin="0,50,0,50" Grid.Row="0">
90 117
                    <telerik:RadCartesianChart.VerticalAxis>
91 118
                        <telerik:CategoricalAxis IsInverse="True" 
92 119
                                         MajorTickStyle="{StaticResource TransparentTickStyle}" 
......
94 121
                                         LabelStyle="{StaticResource TextBlockCountryStyle}" />
95 122
                    </telerik:RadCartesianChart.VerticalAxis>
96 123
                    <telerik:RadCartesianChart.HorizontalAxis>
97
                        <telerik:LinearAxis ShowLabels="False" ElementBrush="Transparent" />
124
                        <telerik:LinearAxis  Minimum="0" Maximum="15000" MajorStep="3000" LabelStyle="{StaticResource axisLabelStyle}"/>
98 125
                    </telerik:RadCartesianChart.HorizontalAxis>
99 126
                    <telerik:RadCartesianChart.Series>
100 127
                        <telerik:BarSeries CategoryBinding="Project_NO" 
101 128
                                   ValueBinding="Count" 
102 129
                                   ItemsSource="{Binding ConvertCOUNTDashBoard}"
103 130
                                   CombineMode="None" 
104
                                   ShowLabels="False" 
105
                                   ClipToPlotArea="False" >
131
                                   ShowLabels="True" 
132
                                   ClipToPlotArea="True" >
106 133
                            <telerik:BarSeries.PointAnimation>
107 134
                                <telerik:ChartMoveAnimation Delay="0:0:0.125" Duration="0:0:1.55" MoveAnimationType="Left" >
108 135
                                    <telerik:ChartMoveAnimation.Easing>
......
119 146
                                <telerik:SeriesLegendSettings Title="Count" MarkerGeometry="{StaticResource SolidRectLegendGeometry}" />
120 147
                            </telerik:BarSeries.LegendSettings>
121 148
                            <telerik:BarSeries.LabelDefinitions>
122
                                <telerik:ChartSeriesLabelDefinition Binding="Count" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
149
                                <telerik:ChartSeriesLabelDefinition Binding="StringCount"  DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
123 150
                            </telerik:BarSeries.LabelDefinitions>
124 151
                        </telerik:BarSeries>
125 152
                        <telerik:BarSeries CategoryBinding="Project_NO" 
126 153
                                       ValueBinding="ExceptionCount" 
127 154
                                       ItemsSource="{Binding ConvertCOUNTDashBoard}"
128
                                       CombineMode="None"  >
155
                                       CombineMode="None" 
156
                                       ShowLabels="True" 
157
                                       ClipToPlotArea="True"   >
158
                            <telerik:BarSeries.LabelDefinitions>
159
                                <telerik:ChartSeriesLabelDefinition Binding="ExceptionCount" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle_Exception}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
160
                            </telerik:BarSeries.LabelDefinitions>
129 161
                            <telerik:BarSeries.PointAnimation>
130 162
                                <telerik:ChartMoveAnimation Delay="0:0:0.125" Duration="0:0:1.55" MoveAnimationType="Left" >
131 163
                                    <telerik:ChartMoveAnimation.Easing>
......
145 177
                    </telerik:RadCartesianChart.Series>
146 178
                </telerik:RadCartesianChart>
147 179

  
148
                <telerik:RadLegend Grid.Column="1" Grid.Row="1" Margin="24,4,0,0" MinWidth="76" Items="{Binding LegendItems, ElementName=chart}" />
180
                <telerik:RadLegend Grid.Column="1" Grid.Row="0" Margin="24,4,0,0" MinWidth="76" Items="{Binding LegendItems, ElementName=chart}" />
181

  
182
                <telerik:RadGridView  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  
183
							 ItemsSource="{Binding DashBoard_Convert}" 
184
                             SelectionMode="Extended"
185
                             SelectionUnit="FullRow"
186
                             CanUserSelect ="True"
187
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"  
188
							 AutoGenerateColumns="False" 
189
                             ColumnWidth="*" CanUserFreezeColumns="False"
190
                             Grid.Row="1" Grid.ColumnSpan="2"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
191
                             LeftFrozenColumnCount="6" 
192
                             RightFrozenColumnCount="0">
193
                    <i:Interaction.Behaviors>
194
                        <controls:GridViewSelectionUtilities SelectedItems="{Binding SelectedConvertList, Source={StaticResource DashBoardViewModel}}" />
195
                    </i:Interaction.Behaviors>
196
                    <telerik:RadGridView.Columns>
197
                        <telerik:GridViewToggleRowDetailsColumn />
198
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
199
                        <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  >
200
                            <telerik:GridViewDataColumn.CellTemplate>
201
                                <DataTemplate>
202
                                    <telerik:RadButton Content="Click" BorderThickness="0"
203
                                                   Background="Transparent"
204
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DashBoardViewModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
205
                                </DataTemplate>
206
                            </telerik:GridViewDataColumn.CellTemplate>
207
                        </telerik:GridViewDataColumn>
208
                        <telerik:GridViewDataColumn Header="ProjectNO" 
209
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
210
                        <telerik:GridViewDataColumn Header="CurrentPageNo" 
211
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
212
                        <telerik:GridViewDataColumn Header="TotalPageNo" 
213
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
214
                        <telerik:GridViewDynamicHyperlinkColumn Header="원본파일" CellStyle="{StaticResource OriginalFileGridViewCell}"
215
                                                        NavigateUrlFormatString=" {0}"
216
													    NavigateUrlMemberPaths="OriginfilePath"
217
														Width="2*">
218
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
219
                                <DataTemplate>
220
                                    <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
221
                                </DataTemplate>
222
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
223
                        </telerik:GridViewDynamicHyperlinkColumn>
224

  
225
                        <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
226
                            <telerik:GridViewDataColumn.CellTemplate>
227
                                <DataTemplate>
228
                                    <Grid>
229
                                        <!--<Grid.ColumnDefinitions>
230
                                            <ColumnDefinition/>
231
                                            <ColumnDefinition Width="Auto"/>
232
                                        </Grid.ColumnDefinitions>
233
                                        <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>-->
234
                                        <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"
235
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DashBoardViewModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
236
                                            <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
237
                                        </telerik:RadButton>
238
                                    </Grid>
239
                                </DataTemplate>
240
                            </telerik:GridViewDataColumn.CellTemplate>
241
                        </telerik:GridViewDataColumn>
242

  
243
                        <telerik:GridViewDataColumn Header="CreateTime" IsReadOnly="True"   Background="Transparent" 
244
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
245
                        <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
246
											DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
247
                    </telerik:RadGridView.Columns>
248
                </telerik:RadGridView>
149 249
            </Grid>
150 250
        </Border>
151 251
        <TextBlock Text="FinalPDF Items" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" Margin="0,20,0,20"/>
......
155 255
                    <ColumnDefinition Width="*" />
156 256
                    <ColumnDefinition Width="Auto" />
157 257
                </Grid.ColumnDefinitions>
158
                <telerik:RadCartesianChart x:Name="char1" Palette="{StaticResource ActualTargetChartPalette}" ClipToBounds="False" Margin="0,50,0,50">
258
                <Grid.RowDefinitions>
259
                    <RowDefinition Height="*"/>
260
                    <RowDefinition Height="Auto"/>
261
                </Grid.RowDefinitions>
262
                <telerik:RadCartesianChart x:Name="char1" Palette="{StaticResource ActualTargetChartPalette}" ClipToBounds="False" Margin="0,50,0,50" Grid.Row="0">
159 263
                    <telerik:RadCartesianChart.VerticalAxis>
160 264
                        <telerik:CategoricalAxis IsInverse="True" 
161 265
                                         MajorTickStyle="{StaticResource TransparentTickStyle}" 
......
163 267
                                         LabelStyle="{StaticResource TextBlockCountryStyle}" />
164 268
                    </telerik:RadCartesianChart.VerticalAxis>
165 269
                    <telerik:RadCartesianChart.HorizontalAxis>
166
                        <telerik:LinearAxis ShowLabels="False" ElementBrush="Transparent" />
270
                        <telerik:LinearAxis  Minimum="0" Maximum="50000" MajorStep="10000" LabelStyle="{StaticResource axisLabelStyle}"/>
167 271
                    </telerik:RadCartesianChart.HorizontalAxis>
168 272
                    <telerik:RadCartesianChart.Series>
169 273
                        <telerik:BarSeries CategoryBinding="Project_NO" 
170 274
                                   ValueBinding="Count" 
171 275
                                   ItemsSource="{Binding FinalPDFCOUNTDashBoard}"
172 276
                                   CombineMode="None" 
173
                                   ShowLabels="False" 
174
                                   ClipToPlotArea="False" >
277
                                   ShowLabels="True" 
278
                                   ClipToPlotArea="True" >
175 279
                            <telerik:BarSeries.PointAnimation>
176 280
                                <telerik:ChartMoveAnimation Delay="0:0:0.125" Duration="0:0:1.55" MoveAnimationType="Left" >
177 281
                                    <telerik:ChartMoveAnimation.Easing>
......
188 292
                                <telerik:SeriesLegendSettings Title="Count" MarkerGeometry="{StaticResource SolidRectLegendGeometry}" />
189 293
                            </telerik:BarSeries.LegendSettings>
190 294
                            <telerik:BarSeries.LabelDefinitions>
191
                                <telerik:ChartSeriesLabelDefinition Binding="Count" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
295
                                <telerik:ChartSeriesLabelDefinition Binding="StringCount"  DefaultVisualStyle="{StaticResource TextBlockCountryStyle}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
192 296
                            </telerik:BarSeries.LabelDefinitions>
193 297
                        </telerik:BarSeries>
194 298
                        <telerik:BarSeries CategoryBinding="Project_NO" 
195 299
                                       ValueBinding="ExceptionCount" 
196 300
                                       ItemsSource="{Binding FinalPDFCOUNTDashBoard}"
197
                                       CombineMode="None"  >
301
                                       CombineMode="None" 
302
                                      ShowLabels="True" 
303
                                      ClipToPlotArea="True"   >
304
                            <telerik:BarSeries.LabelDefinitions>
305
                                <telerik:ChartSeriesLabelDefinition Binding="ExceptionCount" Format="{}{0:F1}" DefaultVisualStyle="{StaticResource TextBlockCountryStyle_Exception}" Strategy="{StaticResource RightAlignedLabelStrategy}" />
306
                            </telerik:BarSeries.LabelDefinitions>
198 307
                            <telerik:BarSeries.PointAnimation>
199 308
                                <telerik:ChartMoveAnimation Delay="0:0:0.125" Duration="0:0:1.55" MoveAnimationType="Left" >
200 309
                                    <telerik:ChartMoveAnimation.Easing>
......
214 323
                    </telerik:RadCartesianChart.Series>
215 324
                </telerik:RadCartesianChart>
216 325

  
217
                <telerik:RadLegend Grid.Column="1" Grid.Row="1" MinWidth="76" Items="{Binding LegendItems, ElementName=char1}" />
326
                <telerik:RadLegend Grid.Column="1" Grid.Row="0" MinWidth="76" Items="{Binding LegendItems, ElementName=char1}" />
327

  
328
                <telerik:RadGridView  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  
329
							 ItemsSource="{Binding DashBoard_FinalPDF}" 
330
                             SelectionMode="Extended"
331
                             SelectionUnit="FullRow"
332
                             CanUserSelect ="True"
333
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"  
334
							 AutoGenerateColumns="False"
335
                             ColumnWidth="*" CanUserFreezeColumns="False"
336
                             Grid.Row="1" Grid.ColumnSpan="2" ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
337
                             LeftFrozenColumnCount="6" 
338
                             RightFrozenColumnCount="0">
339
                    <i:Interaction.Behaviors>
340
                        <controls:GridViewSelectionUtilities SelectedItems="{Binding SelectedFinalPDFList, Source={StaticResource DashBoardViewModel}}" />
341
                    </i:Interaction.Behaviors>
342
                    <telerik:RadGridView.Columns>
343
                        <telerik:GridViewToggleRowDetailsColumn />
344
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
345
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*"  CellStyle="{StaticResource StretchCellStyle}">
346
                            <telerik:GridViewDataColumn.CellTemplate>
347
                                <DataTemplate>
348
                                    <telerik:RadButton Content="Click" BorderThickness="0"
349
                                                   Background="Transparent"
350
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DashBoardViewModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
351
                                </DataTemplate>
352
                            </telerik:GridViewDataColumn.CellTemplate>
353
                        </telerik:GridViewDataColumn>
354
                        <telerik:GridViewDataColumn Header="ProjectNO" 
355
											DataMemberBinding="{Binding ProjectNumber}" Width="*" />
356
                        <telerik:GridViewDataColumn Header="DocumentID"
357
											DataMemberBinding="{Binding DocumentID}" Width="*" />
358
                        <telerik:GridViewDataColumn Header="DocInfoID"
359
											DataMemberBinding="{Binding DocInfo_ID}" Width="*" />
360
                        <telerik:GridViewDataColumn Header="MarkusInfoID"
361
											DataMemberBinding="{Binding MarkupInfo_ID}" Width="*" />
362
                        <telerik:GridViewDataColumn Header="Create UserID"
363
											DataMemberBinding="{Binding Create_User_ID}" Width="*" />
364
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
365
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
366
                        <telerik:GridViewDataColumn Header="TotalPageNo"
367
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
368
                        <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"  CellStyle="{StaticResource OriginalFileGridViewCell}"
369
                                                        NavigateUrlFormatString=" {0}"
370
													    NavigateUrlMemberPaths="OriginfilePath"
371
														Width="2*">
372
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
373
                                <DataTemplate>
374
                                    <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
375
                                </DataTemplate>
376
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
377
                        </telerik:GridViewDynamicHyperlinkColumn>
378

  
379
                        <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
380
                            <telerik:GridViewDataColumn.CellTemplate>
381
                                <DataTemplate>
382
                                    <Grid>
383
                                        <!--<Grid.ColumnDefinitions>
384
                                            <ColumnDefinition/>
385
                                            <ColumnDefinition Width="Auto"/>
386
                                        </Grid.ColumnDefinitions>
387
                                        <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>-->
388
                                        <telerik:RadButton Grid.Column="1" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"
389
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DashBoardViewModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
390
                                            <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
391
                                        </telerik:RadButton>
392
                                    </Grid>
393
                                </DataTemplate>
394
                            </telerik:GridViewDataColumn.CellTemplate>
395
                        </telerik:GridViewDataColumn>
396
                        <telerik:GridViewDataColumn Header="CreateTime" 
397
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*"  />
398
                        <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
399
											DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
400
                    </telerik:RadGridView.Columns>
401
                </telerik:RadGridView>
218 402
            </Grid>
219 403
        </Border>
220 404
    </Grid>

내보내기 Unified diff

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