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