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