프로젝트

일반

사용자정보

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

markus / ConvertService / ServiceController / Markus.Service.StationController / Views / DataBaseView.xaml @ be7b18b6

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

1
<UserControl
2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
7
             xmlns:controls="clr-namespace:Markus.Service.StationController.Controls"
8
             xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel"
9
             xmlns:Data="clr-namespace:Markus.Service.StationController.Data"  
10
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
11
             xmlns:local="clr-namespace:Markus.Service.StationController.Views" x:Name="userControl" x:Class="Markus.Service.StationController.Views.DataBaseView"
12
             mc:Ignorable="d"  Background="White" d:DesignHeight="450" d:DesignWidth="1000" DataContext="{DynamicResource DataBaseItemsModel}">
13
    <UserControl.Resources>
14
        <Style TargetType="telerik:GridViewCell" x:Key="StretchCellStyle">
15
            <Setter Property="Margin" Value="0"/>
16
            <Setter Property="Padding" Value="0"/>
17
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
18
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
19
        </Style>
20
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
21
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
22
            <Setter Property="Background" Value="Gray"/>
23
        </Style>
24
        <Style TargetType="{x:Type telerik:GridViewCell}">
25
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
26
        </Style>
27
        <Style TargetType="{x:Type telerik:GridViewCell}" x:Key="OriginalFileGridViewCell">
28
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
29
        </Style>
30
        <Style TargetType="{x:Type controls:RowIndexColumn}">
31
            <Setter Property="TextAlignment" Value="Center"/>
32
        </Style>
33
        <Style TargetType="{x:Type TextBox}">
34
            <Setter Property="Margin" Value="5,5,0,0"/>
35
            <Setter Property="VerticalAlignment" Value="Center"/>
36
            <Setter Property="VerticalContentAlignment" Value="Center"/>
37
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
38
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
39
            <Setter Property="Foreground" Value="Black"/>
40
            <Setter Property="Background" Value="Transparent"/>
41
            <Setter Property="BorderBrush" Value="Transparent"/>
42
            <Setter Property="BorderThickness" Value="0"/>
43
            <Setter Property="IsReadOnly" Value="true"/>
44
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
45
            <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
46
            <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
47
            <Setter Property="TextBlock.HorizontalAlignment" Value="Stretch"/>
48
            <Setter Property="Template">
49
                <Setter.Value>
50
                    <ControlTemplate TargetType="{x:Type TextBox}" >
51
                        <Border x:Name="Bd" 
52
                    BorderThickness="{TemplateBinding BorderThickness}" 
53
                    SnapsToDevicePixels="true">
54
                            <ScrollViewer x:Name="PART_ContentHost" BorderThickness="{TemplateBinding BorderThickness}" 
55
                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
56
                        </Border>
57
                    </ControlTemplate>
58
                </Setter.Value>
59
            </Setter>
60
        </Style>
61
        <VM:DataBaseItemsModel x:Key="DataBaseItemsModel"/>
62
        <DataTemplate x:Key="RowDetailsTemplate">
63
            <local:DataBaseViewInfo />
64
        </DataTemplate>
65
    </UserControl.Resources>
66
    <i:Interaction.Triggers>
67
        <i:EventTrigger  EventName="Loaded">
68
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
69
        </i:EventTrigger>
70
        <i:EventTrigger  EventName="Unloaded">
71
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
72
        </i:EventTrigger>
73
    </i:Interaction.Triggers>
74
    <Grid HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="top" >
75
        <Grid.RowDefinitions>
76
            <RowDefinition Height="Auto"/>
77
            <RowDefinition Height="Auto"/>
78
            <RowDefinition Height="*"/>
79
            <RowDefinition Height="Auto"/>
80
            <RowDefinition Height="Auto"/>
81
        </Grid.RowDefinitions>
82
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0" >
83
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
84
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
85
                  DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
86
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
87
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="{Binding SelectedInt, Mode=TwoWay}"
88
                   DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
89
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
90
        </StackPanel>
91
        <StackPanel Orientation="Vertical" Grid.Row="1">
92
            <controls:DatabaseFilter ProjectNo="{Binding ProjectNumberFilter,Mode=TwoWay}" UniqueKey="{Binding UniqueKeyFilter,Mode=TwoWay}" Service_ID="{Binding Service_IDFilter, Mode=TwoWay}"
93
                                             Docuemnt_Name="{Binding Document_NameFilter, Mode=TwoWay}" Docuemnt_NO="{Binding Docuemnt_NOFilter, Mode=TwoWay}" Reconverter="{Binding ReconverterFilter, Mode=TwoWay}"
94
                                             Revision="{Binding RevisionFilter, Mode=TwoWay}" GroupNO="{Binding GroupNOFilter, Mode=TwoWay}" Document_URL="{Binding DOCUMENT_URLFilter, Mode=TwoWay}"/>
95
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
96
                <telerik:RadToggleButton Content=" Document Items" Command="{Binding DocumentFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
97
                <telerik:RadToggleButton Content=" Convert 추가" Command="{Binding ConvertAddCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
98
                <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
99
                <telerik:RadToggleButton Content=" 초기화" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
100
            </StackPanel>
101
        </StackPanel>
102

    
103
        <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" Grid.Row="2"
104
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto"  IsExpanded="True"
105
                             telerik:AnimationManager.IsAnimationEnabled="False" >
106
            <telerik:RadExpander.Header>
107
                <Grid>
108
                    <Grid.ColumnDefinitions>
109
                        <ColumnDefinition Width="Auto"/>
110
                        <ColumnDefinition Width="Auto"/>
111
                    </Grid.ColumnDefinitions>
112
                    <TextBlock Text="DataBase Items : "/>
113
                    <TextBlock Text="{Binding FilterConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
114
                </Grid>
115
            </telerik:RadExpander.Header>
116

    
117
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  
118
                                                         ItemsSource="{Binding FilterConvertSourceView}" 
119
                             SelectionMode="Extended"
120
                             SelectionUnit="FullRow"
121
                             CanUserSelect ="True"
122
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"  
123
                                                         AutoGenerateColumns="False" 
124
                             ColumnWidth="*" CanUserFreezeColumns="False"
125
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
126
                             LeftFrozenColumnCount="6" 
127
                             RightFrozenColumnCount="0">
128
                <i:Interaction.Behaviors>
129
                    <controls:GridViewSelectionUtilities SelectedItems="{Binding SelectFilterConvertList}" />
130
                </i:Interaction.Behaviors>
131
                <telerik:RadContextMenu.ContextMenu>
132
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
133
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" />
134
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
135
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
136
                    </telerik:RadContextMenu>
137
                </telerik:RadContextMenu.ContextMenu>
138
                <telerik:RadGridView.Columns>
139
                    <telerik:GridViewToggleRowDetailsColumn />
140
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
141
                    <telerik:GridViewDataColumn Header="Convert ID" 
142
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
143
                    <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  >
144
                        <telerik:GridViewDataColumn.CellTemplate>
145
                            <DataTemplate>
146
                                <telerik:RadButton Content="Click" BorderThickness="0"
147
                                                   Background="Transparent"
148
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
149
                            </DataTemplate>
150
                        </telerik:GridViewDataColumn.CellTemplate>
151
                    </telerik:GridViewDataColumn>
152

    
153
                    <telerik:GridViewDataColumn Header="ProjectNO" 
154
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
155
                    <telerik:GridViewDataColumn Header="UniqueKey" 
156
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
157
                    <telerik:GridViewDataColumn Header="ConvertState" 
158
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
159
                    <telerik:GridViewDataColumn Header="CurrentPageNo" 
160
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
161
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
162
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
163
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일" CellStyle="{StaticResource OriginalFileGridViewCell}"
164
                                                        NavigateUrlFormatString=" {0}"
165
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
166
                                                                                                                Width="2*">
167
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
168
                            <DataTemplate>
169
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
170
                            </DataTemplate>
171
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
172
                    </telerik:GridViewDynamicHyperlinkColumn>
173

    
174
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
175
                        <telerik:GridViewDataColumn.CellTemplate>
176
                            <DataTemplate>
177
                                <Grid>
178
                                    <Grid.ColumnDefinitions>
179
                                        <ColumnDefinition/>
180
                                        <ColumnDefinition Width="Auto"/>
181
                                    </Grid.ColumnDefinitions>
182
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
183
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
184
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
185
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
186
                                    </telerik:RadButton>
187
                                </Grid>
188
                            </DataTemplate>
189
                        </telerik:GridViewDataColumn.CellTemplate>
190
                    </telerik:GridViewDataColumn>
191

    
192
                    <telerik:GridViewDataColumn Header="CreateTime" IsReadOnly="True"   Background="Transparent" 
193
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
194
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
195
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
196
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
197
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
198
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
199
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
200
                </telerik:RadGridView.Columns>
201

    
202
            </telerik:RadGridView>
203
        </telerik:RadExpander>
204
        <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"
205
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch"
206
                                         VerticalAlignment="Stretch" 
207
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
208
            <telerik:RadExpander.Header>
209
                <Grid>
210
                    <Grid.ColumnDefinitions>
211
                        <ColumnDefinition Width="Auto"/>
212
                        <ColumnDefinition Width="Auto"/>
213
                    </Grid.ColumnDefinitions>
214
                    <TextBlock Text="RealConvert Items : "/>
215
                    <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
216
                </Grid>
217
            </telerik:RadExpander.Header>
218
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
219
                                                         ItemsSource="{Binding RealConvertSource}"
220
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
221
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
222
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
223
                             ColumnWidth="*"
224
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
225
                <telerik:RadContextMenu.ContextMenu>
226
                    <telerik:RadContextMenu>
227
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" CommandParameter="{Binding SelectRealConvert}"/>
228
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}" CommandParameter="{Binding SelectRealConvert}"/>
229
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}" CommandParameter="{Binding SelectRealConvert}"/>
230
                        <telerik:RadMenuItem Header="Stop Process"  Command="{Binding Stop_ProcessCommand}" CommandParameter="{Binding SelectRealConvert}" />
231
                    </telerik:RadContextMenu>
232
                </telerik:RadContextMenu.ContextMenu>
233
                <telerik:RadGridView.Columns>
234
                    <telerik:GridViewToggleRowDetailsColumn />
235
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
236

    
237
                    <telerik:GridViewDataColumn Header="Convert ID" 
238
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
239

    
240
                    <telerik:GridViewDataColumn Header="Markus " Width="0.5*"  >
241
                        <telerik:GridViewDataColumn.CellTemplate>
242
                            <DataTemplate>
243
                                <telerik:RadButton Content="Click" BorderThickness="0"
244
                                                   Background="Transparent"
245
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
246
                            </DataTemplate>
247
                        </telerik:GridViewDataColumn.CellTemplate>
248
                    </telerik:GridViewDataColumn>
249

    
250
                    <telerik:GridViewDataColumn Header="ProjectNO" 
251
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
252
                    <telerik:GridViewDataColumn Header="UniqueKey" 
253
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
254
                    <telerik:GridViewDataColumn Header="ConvertState" 
255
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
256
                    <telerik:GridViewDataColumn Header="CurrentPageNo" 
257
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
258
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
259
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
260
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"  CellStyle="{StaticResource OriginalFileGridViewCell}"
261
                                                        NavigateUrlFormatString="{}{0}"
262
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
263
                                                                                                                Width="2*">
264
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
265
                            <DataTemplate>
266
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
267
                            </DataTemplate>
268
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
269
                    </telerik:GridViewDynamicHyperlinkColumn>
270

    
271
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
272
                        <telerik:GridViewDataColumn.CellTemplate>
273
                            <DataTemplate>
274
                                <Grid>
275
                                    <Grid.ColumnDefinitions>
276
                                        <ColumnDefinition/>
277
                                        <ColumnDefinition Width="Auto"/>
278
                                    </Grid.ColumnDefinitions>
279
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
280
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
281
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
282
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
283
                                    </telerik:RadButton>
284
                                </Grid>
285
                            </DataTemplate>
286
                        </telerik:GridViewDataColumn.CellTemplate>
287
                    </telerik:GridViewDataColumn>
288

    
289
                    <telerik:GridViewDataColumn Header="CreateTime"  IsReadOnly="True"
290
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
291
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
292
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
293
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
294
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
295
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
296
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
297
                </telerik:RadGridView.Columns>
298
            </telerik:RadGridView>
299
        </telerik:RadExpander>
300

    
301
        <telerik:RadExpander Grid.Row="4" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch" Margin="0,0,0,10"
302
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
303
                             telerik:AnimationManager.IsAnimationEnabled="False"  IsExpanded ="{Binding  AliveShow, Mode=TwoWay}">
304
            <telerik:RadExpander.Header>
305
                <Grid>
306
                    <Grid.ColumnDefinitions>
307
                        <ColumnDefinition Width="Auto"/>
308
                        <ColumnDefinition Width="Auto"/>
309
                        <ColumnDefinition Width="2*"/>
310
                        <ColumnDefinition Width="57*"/>
311
                    </Grid.ColumnDefinitions>
312
                    <TextBlock Text="Alive Items : " Margin="0,0,5,0"/>
313
                    <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.ColumnSpan="2" Margin="1,0,28,0"/>
314
                </Grid>
315
            </telerik:RadExpander.Header>
316
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
317
                                                         ItemsSource="{Binding AliveItems}"
318
                             SelectedItem="{Binding SelectAliveConvert, Mode=TwoWay}"
319
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
320
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
321
                <telerik:RadContextMenu.ContextMenu>
322
                    <telerik:RadContextMenu>
323
                        <telerik:RadMenuItem Header="Stop Process"  Command="{Binding Stop_ProcessCommand}" CommandParameter="{Binding SelectAliveConvert}"/>
324
                    </telerik:RadContextMenu>
325
                </telerik:RadContextMenu.ContextMenu>
326
                <telerik:RadGridView.Columns>
327
                    <telerik:GridViewToggleRowDetailsColumn />
328
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
329
                    <telerik:GridViewDataColumn Header="Convert ID" 
330
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
331
                    <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
332
                        <telerik:GridViewDataColumn.CellTemplate>
333
                            <DataTemplate>
334
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
335
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
336
                            </DataTemplate>
337
                        </telerik:GridViewDataColumn.CellTemplate>
338
                    </telerik:GridViewDataColumn>
339

    
340
                    <telerik:GridViewDataColumn Header="ProjectNO"
341
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
342
                    <telerik:GridViewDataColumn Header="UniqueKey" 
343
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
344
                    <telerik:GridViewDataColumn Header="ConvertState" 
345
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
346
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
347
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
348
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
349
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
350
                    <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"  CellStyle="{StaticResource OriginalFileGridViewCell}"
351
                                                        NavigateUrlFormatString="{}{0}"
352
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
353
                                                                                                                Width="2*">
354
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
355
                            <DataTemplate>
356
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
357
                            </DataTemplate>
358
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
359
                    </telerik:GridViewDynamicHyperlinkColumn>
360

    
361
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
362
                        <telerik:GridViewDataColumn.CellTemplate>
363
                            <DataTemplate>
364
                                <Grid>
365
                                    <Grid.ColumnDefinitions>
366
                                        <ColumnDefinition/>
367
                                        <ColumnDefinition Width="Auto"/>
368
                                    </Grid.ColumnDefinitions>
369
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
370
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
371
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
372
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
373
                                    </telerik:RadButton>
374
                                </Grid>
375
                            </DataTemplate>
376
                        </telerik:GridViewDataColumn.CellTemplate>
377
                    </telerik:GridViewDataColumn>
378
                    <telerik:GridViewDataColumn Header="CreateTime"  IsReadOnly="True"
379
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
380
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
381
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
382
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
383
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
384
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
385
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
386
                </telerik:RadGridView.Columns>
387
            </telerik:RadGridView>
388
        </telerik:RadExpander>
389
    </Grid>
390
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)