프로젝트

일반

사용자정보

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

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

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

1 5c387707 semi
<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 64e36f82 semi
                <telerik:RadToggleButton Content=" Run_Project 추가" Command="{Binding Run_ProjectCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
97 5c387707 semi
                <telerik:RadToggleButton Content=" Document Items" Command="{Binding DocumentFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
98
                <telerik:RadToggleButton Content=" Convert 추가" Command="{Binding ConvertAddCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
99
                <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
100
                <telerik:RadToggleButton Content=" 초기화" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
101
            </StackPanel>
102
        </StackPanel>
103
104
        <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" Grid.Row="2"
105
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto"  IsExpanded="True"
106
                             telerik:AnimationManager.IsAnimationEnabled="False" >
107
            <telerik:RadExpander.Header>
108
                <Grid>
109
                    <Grid.ColumnDefinitions>
110
                        <ColumnDefinition Width="Auto"/>
111
                        <ColumnDefinition Width="Auto"/>
112
                    </Grid.ColumnDefinitions>
113
                    <TextBlock Text="DataBase Items : "/>
114
                    <TextBlock Text="{Binding FilterConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
115
                </Grid>
116
            </telerik:RadExpander.Header>
117
118
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  
119
                                                         ItemsSource="{Binding FilterConvertSourceView}" 
120
                             SelectionMode="Extended"
121
                             SelectionUnit="FullRow"
122
                             CanUserSelect ="True"
123
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"  
124
                                                         AutoGenerateColumns="False" 
125
                             ColumnWidth="*" CanUserFreezeColumns="False"
126
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
127
                             LeftFrozenColumnCount="6" 
128
                             RightFrozenColumnCount="0">
129
                <i:Interaction.Behaviors>
130
                    <controls:GridViewSelectionUtilities SelectedItems="{Binding SelectFilterConvertList}" />
131
                </i:Interaction.Behaviors>
132
                <telerik:RadContextMenu.ContextMenu>
133
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
134
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" />
135
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
136
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
137
                    </telerik:RadContextMenu>
138
                </telerik:RadContextMenu.ContextMenu>
139
                <telerik:RadGridView.Columns>
140
                    <telerik:GridViewToggleRowDetailsColumn />
141
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
142
                    <telerik:GridViewDataColumn Header="Convert ID" 
143
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
144
                    <telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*"  >
145
                        <telerik:GridViewDataColumn.CellTemplate>
146
                            <DataTemplate>
147
                                <telerik:RadButton Content="Click" BorderThickness="0"
148
                                                   Background="Transparent"
149
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
150
                            </DataTemplate>
151
                        </telerik:GridViewDataColumn.CellTemplate>
152
                    </telerik:GridViewDataColumn>
153
154
                    <telerik:GridViewDataColumn Header="ProjectNO" 
155
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
156
                    <telerik:GridViewDataColumn Header="UniqueKey" 
157
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
158
                    <telerik:GridViewDataColumn Header="ConvertState" 
159
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
160
                    <telerik:GridViewDataColumn Header="CurrentPageNo" 
161
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
162
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
163
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*"  />
164
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일" CellStyle="{StaticResource OriginalFileGridViewCell}"
165
                                                        NavigateUrlFormatString=" {0}"
166
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
167
                                                                                                                Width="2*">
168
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
169
                            <DataTemplate>
170
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
171
                            </DataTemplate>
172
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
173
                    </telerik:GridViewDynamicHyperlinkColumn>
174
175
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
176
                        <telerik:GridViewDataColumn.CellTemplate>
177
                            <DataTemplate>
178
                                <Grid>
179
                                    <Grid.ColumnDefinitions>
180
                                        <ColumnDefinition/>
181
                                        <ColumnDefinition Width="Auto"/>
182
                                    </Grid.ColumnDefinitions>
183
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
184
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
185
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
186
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
187
                                    </telerik:RadButton>
188
                                </Grid>
189
                            </DataTemplate>
190
                        </telerik:GridViewDataColumn.CellTemplate>
191
                    </telerik:GridViewDataColumn>
192
193
                    <telerik:GridViewDataColumn Header="CreateTime" IsReadOnly="True"   Background="Transparent" 
194
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
195
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
196
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
197
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
198
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
199
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
200
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
201
                </telerik:RadGridView.Columns>
202
203
            </telerik:RadGridView>
204
        </telerik:RadExpander>
205 919dee1b semi
206 5c387707 semi
        <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"
207
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch"
208
                                         VerticalAlignment="Stretch" 
209
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
210
            <telerik:RadExpander.Header>
211
                <Grid>
212
                    <Grid.ColumnDefinitions>
213
                        <ColumnDefinition Width="Auto"/>
214
                        <ColumnDefinition Width="Auto"/>
215
                    </Grid.ColumnDefinitions>
216
                    <TextBlock Text="RealConvert Items : "/>
217
                    <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
218
                </Grid>
219
            </telerik:RadExpander.Header>
220
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
221
                                                         ItemsSource="{Binding RealConvertSource}"
222
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
223
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
224
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
225
                             ColumnWidth="*"
226
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
227
                <telerik:RadContextMenu.ContextMenu>
228
                    <telerik:RadContextMenu>
229
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" CommandParameter="{Binding SelectRealConvert}"/>
230
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}" CommandParameter="{Binding SelectRealConvert}"/>
231
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}" CommandParameter="{Binding SelectRealConvert}"/>
232
                        <telerik:RadMenuItem Header="Stop Process"  Command="{Binding Stop_ProcessCommand}" CommandParameter="{Binding SelectRealConvert}" />
233
                    </telerik:RadContextMenu>
234
                </telerik:RadContextMenu.ContextMenu>
235
                <telerik:RadGridView.Columns>
236
                    <telerik:GridViewToggleRowDetailsColumn />
237
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
238
239
                    <telerik:GridViewDataColumn Header="Convert ID" 
240
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
241
242
                    <telerik:GridViewDataColumn Header="Markus " Width="0.5*"  >
243
                        <telerik:GridViewDataColumn.CellTemplate>
244
                            <DataTemplate>
245
                                <telerik:RadButton Content="Click" BorderThickness="0"
246
                                                   Background="Transparent"
247
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
248
                            </DataTemplate>
249
                        </telerik:GridViewDataColumn.CellTemplate>
250
                    </telerik:GridViewDataColumn>
251
252
                    <telerik:GridViewDataColumn Header="ProjectNO" 
253
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
254
                    <telerik:GridViewDataColumn Header="UniqueKey" 
255
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
256
                    <telerik:GridViewDataColumn Header="ConvertState" 
257
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
258
                    <telerik:GridViewDataColumn Header="CurrentPageNo" 
259
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
260
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
261
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
262
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"  CellStyle="{StaticResource OriginalFileGridViewCell}"
263
                                                        NavigateUrlFormatString="{}{0}"
264
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
265
                                                                                                                Width="2*">
266
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
267
                            <DataTemplate>
268
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
269
                            </DataTemplate>
270
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
271
                    </telerik:GridViewDynamicHyperlinkColumn>
272
273
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
274
                        <telerik:GridViewDataColumn.CellTemplate>
275
                            <DataTemplate>
276
                                <Grid>
277
                                    <Grid.ColumnDefinitions>
278
                                        <ColumnDefinition/>
279
                                        <ColumnDefinition Width="Auto"/>
280
                                    </Grid.ColumnDefinitions>
281
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
282
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
283
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
284
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
285
                                    </telerik:RadButton>
286
                                </Grid>
287
                            </DataTemplate>
288
                        </telerik:GridViewDataColumn.CellTemplate>
289
                    </telerik:GridViewDataColumn>
290
291
                    <telerik:GridViewDataColumn Header="CreateTime"  IsReadOnly="True"
292
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
293
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
294
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
295
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
296
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
297
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
298
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
299
                </telerik:RadGridView.Columns>
300
            </telerik:RadGridView>
301
        </telerik:RadExpander>
302
303
        <telerik:RadExpander Grid.Row="4" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch" Margin="0,0,0,10"
304
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
305
                             telerik:AnimationManager.IsAnimationEnabled="False"  IsExpanded ="{Binding  AliveShow, Mode=TwoWay}">
306
            <telerik:RadExpander.Header>
307
                <Grid>
308
                    <Grid.ColumnDefinitions>
309
                        <ColumnDefinition Width="Auto"/>
310
                        <ColumnDefinition Width="Auto"/>
311
                        <ColumnDefinition Width="2*"/>
312
                        <ColumnDefinition Width="57*"/>
313
                    </Grid.ColumnDefinitions>
314
                    <TextBlock Text="Alive Items : " Margin="0,0,5,0"/>
315
                    <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.ColumnSpan="2" Margin="1,0,28,0"/>
316
                </Grid>
317
            </telerik:RadExpander.Header>
318
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
319
                                                         ItemsSource="{Binding AliveItems}"
320
                             SelectedItem="{Binding SelectAliveConvert, Mode=TwoWay}"
321
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
322
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
323
                <telerik:RadContextMenu.ContextMenu>
324
                    <telerik:RadContextMenu>
325
                        <telerik:RadMenuItem Header="Stop Process"  Command="{Binding Stop_ProcessCommand}" CommandParameter="{Binding SelectAliveConvert}"/>
326
                    </telerik:RadContextMenu>
327
                </telerik:RadContextMenu.ContextMenu>
328
                <telerik:RadGridView.Columns>
329
                    <telerik:GridViewToggleRowDetailsColumn />
330
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
331
                    <telerik:GridViewDataColumn Header="Convert ID" 
332
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="*" />
333
                    <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
334
                        <telerik:GridViewDataColumn.CellTemplate>
335
                            <DataTemplate>
336
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
337
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
338
                            </DataTemplate>
339
                        </telerik:GridViewDataColumn.CellTemplate>
340
                    </telerik:GridViewDataColumn>
341
342
                    <telerik:GridViewDataColumn Header="ProjectNO"
343
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
344
                    <telerik:GridViewDataColumn Header="UniqueKey" 
345
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
346
                    <telerik:GridViewDataColumn Header="ConvertState" 
347
                                                                                        DataMemberBinding="{Binding ConvertState}" Width="*" />
348
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
349
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
350
                    <telerik:GridViewDataColumn Header="TotalPageNo" 
351
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
352
                    <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"  CellStyle="{StaticResource OriginalFileGridViewCell}"
353
                                                        NavigateUrlFormatString="{}{0}"
354
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
355
                                                                                                                Width="2*">
356
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
357
                            <DataTemplate>
358
                                <TextBlock Text="{Binding FileName}" HorizontalAlignment="Left"/>
359
                            </DataTemplate>
360
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
361
                    </telerik:GridViewDynamicHyperlinkColumn>
362
363
                    <telerik:GridViewDataColumn Header=" ConvertPath" IsReadOnly="True" Width="*" CellStyle="{StaticResource StretchCellStyle}">
364
                        <telerik:GridViewDataColumn.CellTemplate>
365
                            <DataTemplate>
366
                                <Grid>
367
                                    <Grid.ColumnDefinitions>
368
                                        <ColumnDefinition/>
369
                                        <ColumnDefinition Width="Auto"/>
370
                                    </Grid.ColumnDefinitions>
371
                                    <TextBox TextAlignment="Left" Text="{Binding ConvertPath}" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black"/>
372
                                    <telerik:RadButton Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="Black" Grid.Column="1"
373
                                                   Command="{Binding ConvertPathFileSearchCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}">
374
                                        <Image Source="/Markus.Service.StationController;component/Resources/File_Search_Icon.png"  Stretch="None" />
375
                                    </telerik:RadButton>
376
                                </Grid>
377
                            </DataTemplate>
378
                        </telerik:GridViewDataColumn.CellTemplate>
379
                    </telerik:GridViewDataColumn>
380
                    <telerik:GridViewDataColumn Header="CreateTime"  IsReadOnly="True"
381
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
382
                    <telerik:GridViewDataColumn Header="StartTime" IsReadOnly="True"   Background="Transparent" 
383
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
384
                    <telerik:GridViewDataColumn Header="EndTime" IsReadOnly="True"   Background="Transparent" 
385
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
386
                    <telerik:GridViewDataColumn Header="TotalTime" IsReadOnly="True"   Background="Transparent" 
387
                                                                                        DataMemberBinding="{Binding TotalTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
388
                </telerik:RadGridView.Columns>
389
            </telerik:RadGridView>
390
        </telerik:RadExpander>
391 919dee1b semi
392 5c387707 semi
    </Grid>
393
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)