markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / DataBaseView.xaml @ 902f397c
이력 | 보기 | 이력해설 | 다운로드 (20.8 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:Class="Markus.Service.StationController.Views.DataBaseView" |
12 |
mc:Ignorable="d" Background="White" DataContext="{DynamicResource DataBaseItemsModel}" |
13 |
d:DesignHeight="450" d:DesignWidth="800"> |
14 |
<UserControl.Resources>
|
15 |
<Style TargetType="telerik:GridViewCell" x:Key="StretchCellStyle"> |
16 |
<Setter Property="Margin" Value="0"/> |
17 |
<Setter Property="Padding" Value="0"/> |
18 |
<Setter Property="VerticalContentAlignment" Value="Stretch"/> |
19 |
<Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
20 |
</Style>
|
21 |
<Style TargetType="{x:Type telerik:GridViewHeaderCell}"> |
22 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
23 |
<Setter Property="Background" Value="Gray"/> |
24 |
</Style>
|
25 |
<Style TargetType="{x:Type telerik:GridViewCell}"> |
26 |
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
27 |
</Style>
|
28 |
<Style TargetType="{x:Type controls:RowIndexColumn}"> |
29 |
<Setter Property="TextAlignment" Value="Center"/> |
30 |
</Style>
|
31 |
<VM:DataBaseItemsModel x:Key="DataBaseItemsModel"/> |
32 |
<DataTemplate x:Key="RowDetailsTemplate"> |
33 |
<local:DataBaseViewInfo /> |
34 |
</DataTemplate>
|
35 |
<DataTemplate x:Key="DatabaseFilter"> |
36 |
<local:DatabaseFilter /> |
37 |
</DataTemplate>
|
38 |
</UserControl.Resources>
|
39 |
<!--<UserControl.DataContext>
|
40 |
<VM:DataBaseItemsModel/>
|
41 |
</UserControl.DataContext>-->
|
42 |
<i:Interaction.Triggers>
|
43 |
<i:EventTrigger EventName="Loaded"> |
44 |
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/> |
45 |
</i:EventTrigger>
|
46 |
<i:EventTrigger EventName="Unloaded"> |
47 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
48 |
</i:EventTrigger>
|
49 |
</i:Interaction.Triggers>
|
50 |
<Grid HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
51 |
<Grid.RowDefinitions>
|
52 |
<RowDefinition Height="Auto"/> |
53 |
<RowDefinition Height="*"/> |
54 |
</Grid.RowDefinitions>
|
55 |
<StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0" Height="20" > |
56 |
<TextBlock Text="Display Count : " VerticalAlignment="Center"/> |
57 |
<telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember" |
58 |
DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" /> |
59 |
<TextBlock Text="Status Type : " Margin="10,0,0,0" VerticalAlignment="Center"/> |
60 |
<telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4" |
61 |
DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/> |
62 |
<telerik:RadToggleButton Content=" 엑셀 저장 " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/> |
63 |
</StackPanel>
|
64 |
<Grid HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" > |
65 |
<Grid.RowDefinitions>
|
66 |
<RowDefinition Height="*"/> |
67 |
<RowDefinition Height="*" /> |
68 |
<RowDefinition Height="Auto"/> |
69 |
<RowDefinition Height="Auto"/> |
70 |
</Grid.RowDefinitions>
|
71 |
<telerik:RadExpander ExpandDirection="Down" BorderThickness="0" MaxHeight="700" Grid.Row="0" |
72 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True" |
73 |
telerik:AnimationManager.IsAnimationEnabled="False"> |
74 |
<telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
75 |
RowDetailsTemplate="{StaticResource RowDetailsTemplate}" |
76 |
AutoGenerateColumns="False" CanUserFreezeColumns="True" |
77 |
ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected" |
78 |
Grid.Row="1" ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True" |
79 |
LeftFrozenColumnCount="6" |
80 |
RightFrozenColumnCount="0"> |
81 |
<telerik:RadGridView.Columns>
|
82 |
<telerik:GridViewDataColumn Header="필터 검색원하시면 클릭하세요! "/> |
83 |
</telerik:RadGridView.Columns>
|
84 |
</telerik:RadGridView>
|
85 |
</telerik:RadExpander>
|
86 |
|
87 |
<telerik:RadExpander ExpandDirection="Down" BorderThickness="0" MaxHeight="700" Grid.Row="1" |
88 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True" |
89 |
telerik:AnimationManager.IsAnimationEnabled="False"> |
90 |
<telerik:RadExpander.Header>
|
91 |
<Grid>
|
92 |
<Grid.ColumnDefinitions>
|
93 |
<ColumnDefinition Width="Auto"/> |
94 |
<ColumnDefinition Width="Auto"/> |
95 |
</Grid.ColumnDefinitions>
|
96 |
<TextBlock Text="DataBase Items : "/> |
97 |
<TextBlock Text="{Binding SelectedCount.ValueMember, StringFormat=\{0:d\}}" Grid.Column="1"/> |
98 |
</Grid>
|
99 |
</telerik:RadExpander.Header>
|
100 |
<telerik:RadGridView x:Name="dataGrid1" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
101 |
ItemsSource="{Binding FilterConvertSource}" |
102 |
SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}" |
103 |
RowDetailsTemplate="{StaticResource RowDetailsTemplate}" |
104 |
AutoGenerateColumns="False" CanUserFreezeColumns="True" |
105 |
ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected" |
106 |
Grid.Row="1" ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True" |
107 |
LeftFrozenColumnCount="6" |
108 |
RightFrozenColumnCount="0"> |
109 |
<telerik:RadContextMenu.ContextMenu>
|
110 |
<telerik:RadContextMenu x:Name= "GridContextMenu"> |
111 |
<telerik:RadMenuItem Header="Convert" Command="{Binding ConvertCommand}"/> |
112 |
<telerik:RadMenuItem Header="Validation" Command="{Binding ValidateCommand}"/> |
113 |
<telerik:RadMenuItem Header="Delete" Command="{Binding DeleteCommand}"/> |
114 |
</telerik:RadContextMenu>
|
115 |
</telerik:RadContextMenu.ContextMenu>
|
116 |
<telerik:RadGridView.Columns>
|
117 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
118 |
<telerik:GridViewDataColumn Header="Convert ID " |
119 |
DataMemberBinding="{Binding ConvertID}" Width="1.5*" /> |
120 |
<telerik:GridViewDataColumn x:Name="commend" Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}"> |
121 |
<telerik:GridViewDataColumn.CellTemplate>
|
122 |
<DataTemplate>
|
123 |
<telerik:RadButton Content="Click" BorderThickness="0" |
124 |
Background="Transparent" |
125 |
Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
126 |
</DataTemplate>
|
127 |
</telerik:GridViewDataColumn.CellTemplate>
|
128 |
</telerik:GridViewDataColumn>
|
129 |
<telerik:GridViewDataColumn Header="ProjectNO" |
130 |
DataMemberBinding="{Binding ProjectNumber}" Width="*" /> |
131 |
<telerik:GridViewDataColumn Header="UniqueKey" |
132 |
DataMemberBinding="{Binding UniqueKey}" Width="*" /> |
133 |
<telerik:GridViewDataColumn Header="ConvertState" |
134 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" /> |
135 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
136 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" /> |
137 |
<telerik:GridViewDataColumn Header="TotalPageNo" |
138 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" /> |
139 |
<telerik:GridViewDynamicHyperlinkColumn Header="원본파일" |
140 |
NavigateUrlFormatString=" {0}" |
141 |
NavigateUrlMemberPaths="OriginfilePath" |
142 |
Width="2*"> |
143 |
<telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
144 |
<DataTemplate>
|
145 |
<TextBlock Text="{Binding FileName}"/> |
146 |
</DataTemplate>
|
147 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
148 |
</telerik:GridViewDynamicHyperlinkColumn>
|
149 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
150 |
DataMemberBinding="{Binding ConvertPath}" Width="2.5*" /> |
151 |
<telerik:GridViewDataColumn Header="CreateTime" |
152 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
153 |
<telerik:GridViewDataColumn Header="StartTime" |
154 |
DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
155 |
<telerik:GridViewDataColumn Header="EndTime" |
156 |
DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
157 |
</telerik:RadGridView.Columns>
|
158 |
</telerik:RadGridView>
|
159 |
</telerik:RadExpander>
|
160 |
<telerik:RadExpander Grid.Row="2" ExpandDirection="Down" BorderThickness="0" |
161 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" |
162 |
telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}"> |
163 |
<telerik:RadExpander.Header>
|
164 |
<Grid>
|
165 |
<Grid.ColumnDefinitions>
|
166 |
<ColumnDefinition Width="Auto"/> |
167 |
<ColumnDefinition Width="Auto"/> |
168 |
</Grid.ColumnDefinitions>
|
169 |
<TextBlock Text="RealConvert Items : "/> |
170 |
<TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/> |
171 |
</Grid>
|
172 |
</telerik:RadExpander.Header>
|
173 |
<telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
174 |
ItemsSource="{Binding RealConvertSource}" |
175 |
SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}" |
176 |
RowDetailsTemplate="{StaticResource RowDetailsTemplate}" |
177 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" |
178 |
ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected" |
179 |
Grid.Row="1" ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True"> |
180 |
<telerik:RadContextMenu.ContextMenu>
|
181 |
<telerik:RadContextMenu>
|
182 |
<telerik:RadMenuItem Header="Convert" Command="{Binding ConvertCommand}"/> |
183 |
<telerik:RadMenuItem Header="Validation" Command="{Binding ValidateCommand}"/> |
184 |
<telerik:RadMenuItem Header="Delete" Command="{Binding DeleteCommand}"/> |
185 |
</telerik:RadContextMenu>
|
186 |
</telerik:RadContextMenu.ContextMenu>
|
187 |
<telerik:RadGridView.Columns>
|
188 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
189 |
|
190 |
<telerik:GridViewDataColumn Header="Convert ID " |
191 |
DataMemberBinding="{Binding ConvertID}" Width="1.5*" /> |
192 |
|
193 |
<telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}"> |
194 |
<telerik:GridViewDataColumn.CellTemplate>
|
195 |
<DataTemplate>
|
196 |
<telerik:RadButton Content="Click " BorderThickness="0" Background="Transparent" |
197 |
Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
198 |
</DataTemplate>
|
199 |
</telerik:GridViewDataColumn.CellTemplate>
|
200 |
</telerik:GridViewDataColumn>
|
201 |
|
202 |
<telerik:GridViewDataColumn Header="ProjectNO" |
203 |
DataMemberBinding="{Binding ProjectNumber}" Width="*" /> |
204 |
<telerik:GridViewDataColumn Header="UniqueKey" |
205 |
DataMemberBinding="{Binding UniqueKey}" Width="*" /> |
206 |
<telerik:GridViewDataColumn Header="ConvertState" |
207 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" /> |
208 |
|
209 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
210 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" /> |
211 |
<telerik:GridViewDataColumn Header="TotalPageNo" |
212 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" /> |
213 |
<telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일" |
214 |
NavigateUrlFormatString="{}{0}" |
215 |
NavigateUrlMemberPaths="OriginfilePath" |
216 |
Width="2*"> |
217 |
<telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
218 |
<DataTemplate>
|
219 |
<TextBlock Text="{Binding FileName}"/> |
220 |
</DataTemplate>
|
221 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
222 |
</telerik:GridViewDynamicHyperlinkColumn>
|
223 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
224 |
DataMemberBinding="{Binding ConvertPath}" Width="2.5*" /> |
225 |
<telerik:GridViewDataColumn Header="CreateTime" |
226 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
227 |
<telerik:GridViewDataColumn Header="StartTime" |
228 |
DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
229 |
<telerik:GridViewDataColumn Header="EndTime" |
230 |
DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
231 |
</telerik:RadGridView.Columns>
|
232 |
</telerik:RadGridView>
|
233 |
</telerik:RadExpander>
|
234 |
<telerik:RadExpander Grid.Row="3" ExpandDirection="Down" Margin="3" BorderThickness="0" VerticalAlignment="Stretch" |
235 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" |
236 |
telerik:AnimationManager.IsAnimationEnabled="False"> |
237 |
<telerik:RadExpander.Header>
|
238 |
<Grid>
|
239 |
<Grid.RowDefinitions>
|
240 |
<RowDefinition Height="11*"/> |
241 |
<RowDefinition Height="5*"/> |
242 |
</Grid.RowDefinitions>
|
243 |
<Grid.ColumnDefinitions>
|
244 |
<ColumnDefinition Width="Auto"/> |
245 |
<ColumnDefinition Width="Auto"/> |
246 |
</Grid.ColumnDefinitions>
|
247 |
<TextBlock Text="Alive Items : " Grid.RowSpan="2"/> |
248 |
<TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.RowSpan="2"/> |
249 |
</Grid>
|
250 |
</telerik:RadExpander.Header>
|
251 |
<telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
252 |
ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected" |
253 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}" |
254 |
ColumnWidth="*" ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" > |
255 |
<telerik:RadGridView.Columns>
|
256 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
257 |
|
258 |
<telerik:GridViewDataColumn Header="Convert ID " |
259 |
DataMemberBinding="{Binding ConvertID}" Width="1.5*" /> |
260 |
|
261 |
<telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}"> |
262 |
<telerik:GridViewDataColumn.CellTemplate>
|
263 |
<DataTemplate>
|
264 |
<telerik:RadButton Content="Click " BorderThickness="0" Background="Transparent" |
265 |
Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
266 |
</DataTemplate>
|
267 |
</telerik:GridViewDataColumn.CellTemplate>
|
268 |
</telerik:GridViewDataColumn>
|
269 |
|
270 |
<telerik:GridViewDataColumn Header="ProjectNO" |
271 |
DataMemberBinding="{Binding ProjectNumber}" Width="*" /> |
272 |
<telerik:GridViewDataColumn Header="UniqueKey" |
273 |
DataMemberBinding="{Binding UniqueKey}" Width="*" /> |
274 |
<telerik:GridViewDataColumn Header="ConvertState" |
275 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" /> |
276 |
|
277 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
278 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" /> |
279 |
<telerik:GridViewDataColumn Header="TotalPageNo" |
280 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" /> |
281 |
<telerik:GridViewDynamicHyperlinkColumn Header="원본파일" |
282 |
NavigateUrlFormatString="{}{0}" |
283 |
NavigateUrlMemberPaths="OriginfilePath" |
284 |
Width="*"> |
285 |
<telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
286 |
<DataTemplate>
|
287 |
<TextBlock Text="{Binding FileName}"/> |
288 |
</DataTemplate>
|
289 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
290 |
</telerik:GridViewDynamicHyperlinkColumn>
|
291 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
292 |
DataMemberBinding="{Binding ConvertPath}" Width="2.5*" /> |
293 |
<telerik:GridViewDataColumn Header="CreateTime" |
294 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
295 |
<telerik:GridViewDataColumn Header="StartTime" |
296 |
DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
297 |
<telerik:GridViewDataColumn Header="EndTime" |
298 |
DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" /> |
299 |
</telerik:RadGridView.Columns>
|
300 |
</telerik:RadGridView>
|
301 |
</telerik:RadExpander>
|
302 |
</Grid>
|
303 |
</Grid>
|
304 |
</UserControl>
|