markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / DataBaseView.xaml @ b119eeaa
이력 | 보기 | 이력해설 | 다운로드 (17.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 |
</UserControl.Resources>
|
33 |
<!--<UserControl.DataContext>
|
34 |
<VM:DataBaseItemsModel/>
|
35 |
</UserControl.DataContext>-->
|
36 |
|
37 |
<i:Interaction.Triggers>
|
38 |
<i:EventTrigger EventName="Loaded"> |
39 |
<i:InvokeCommandAction Command="{Binding LoadedCommand}"/> |
40 |
</i:EventTrigger>
|
41 |
<i:EventTrigger EventName="Unloaded"> |
42 |
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/> |
43 |
</i:EventTrigger>
|
44 |
</i:Interaction.Triggers>
|
45 |
|
46 |
<Grid HorizontalAlignment="Left"> |
47 |
<Grid.RowDefinitions>
|
48 |
<RowDefinition Height="Auto"/> |
49 |
<RowDefinition Height="*"/> |
50 |
<RowDefinition Height="*"/> |
51 |
<RowDefinition Height="*"/> |
52 |
<RowDefinition Height="100"/> |
53 |
</Grid.RowDefinitions>
|
54 |
<StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0" Height="20" > |
55 |
<TextBlock Text="Display Count : " VerticalAlignment="Center"/> |
56 |
<telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember" |
57 |
DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" /> |
58 |
<!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감-->
|
59 |
<!--SelectedItem : object값 리턴-->
|
60 |
<TextBlock Text="Status Type : " Margin="10,0,0,0" VerticalAlignment="Center"/> |
61 |
<telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4" |
62 |
DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/> |
63 |
<telerik:RadToggleButton Content=" 엑셀 저장 " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/> |
64 |
</StackPanel>
|
65 |
<GroupBox Grid.Row="1" |
66 |
Header="DataBase Items" BorderThickness="0" |
67 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
68 |
<telerik:RadGridView x:Name="dataGrid1" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
69 |
ItemsSource="{Binding FilterConvertSource}" |
70 |
SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}" |
71 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" |
72 |
ColumnWidth="*" |
73 |
Grid.Row="1" ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" > |
74 |
<telerik:RadContextMenu.ContextMenu>
|
75 |
<telerik:RadContextMenu x:Name= "GridContextMenu"> |
76 |
<telerik:RadMenuItem Header="Convert" Command="{Binding ConvertCommand}"/> |
77 |
<telerik:RadMenuItem Header="Validation" Command="{Binding ValidateCommand}"/> |
78 |
<telerik:RadMenuItem Header="Delete" Command="{Binding DeleteCommand}"/> |
79 |
</telerik:RadContextMenu>
|
80 |
</telerik:RadContextMenu.ContextMenu>
|
81 |
|
82 |
<telerik:RadGridView.Columns>
|
83 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
84 |
<telerik:GridViewDataColumn Header="Convert ID " |
85 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" /> |
86 |
<telerik:GridViewDataColumn x:Name="commend" Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}"> |
87 |
<telerik:GridViewDataColumn.CellTemplate>
|
88 |
<DataTemplate>
|
89 |
<telerik:RadButton Content="Click" BorderThickness="0" |
90 |
Background="Transparent" |
91 |
Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
92 |
</DataTemplate>
|
93 |
</telerik:GridViewDataColumn.CellTemplate>
|
94 |
</telerik:GridViewDataColumn>
|
95 |
<telerik:GridViewDataColumn Header="ProjectNO" |
96 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" /> |
97 |
|
98 |
<telerik:GridViewDataColumn Header="ConvertState" |
99 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" /> |
100 |
|
101 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
102 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" /> |
103 |
<telerik:GridViewDataColumn Header="TotalPage" |
104 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" /> |
105 |
<!--<telerik:GridViewDataColumn Header=" OriginfilePath"
|
106 |
DataMemberBinding="{Binding OriginfilePath}" MinWidth="170"/>-->
|
107 |
<telerik:GridViewDynamicHyperlinkColumn Header="원본파일" |
108 |
NavigateUrlFormatString=" {0}" |
109 |
NavigateUrlMemberPaths="OriginfilePath" |
110 |
Width="150"> |
111 |
<telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
112 |
<DataTemplate>
|
113 |
<TextBlock Text="{Binding FileName}"/> |
114 |
</DataTemplate>
|
115 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
116 |
</telerik:GridViewDynamicHyperlinkColumn>
|
117 |
|
118 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
119 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" /> |
120 |
<telerik:GridViewDataColumn Header="CreateTime" |
121 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" /> |
122 |
<telerik:GridViewDataColumn Header="Exception" |
123 |
DataMemberBinding="{Binding Exception}"/> |
124 |
<telerik:GridViewDataColumn Header="ProcessorAffinity" |
125 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" /> |
126 |
<telerik:GridViewDataColumn Header="ReConverter" |
127 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" /> |
128 |
<telerik:GridViewDataColumn Header="UniqueKey" |
129 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" /> |
130 |
|
131 |
<telerik:GridViewDataColumn Header="REVISION" |
132 |
DataMemberBinding="{Binding Revision}"/> |
133 |
<telerik:GridViewDataColumn Header="DOCUMENT_NO" |
134 |
DataMemberBinding="{Binding DocumnetNo}"/> |
135 |
<telerik:GridViewDataColumn Header="DOCUMENT_NAME" |
136 |
DataMemberBinding="{Binding DocumnetName}"/> |
137 |
<telerik:GridViewDataColumn Header="GROUP_NO" |
138 |
DataMemberBinding="{Binding GroupNo}"/> |
139 |
<telerik:GridViewDataColumn Header="Validation" |
140 |
DataMemberBinding="{Binding Validation}"/> |
141 |
<telerik:GridViewDataColumn Header="Service ID" |
142 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250" /> |
143 |
</telerik:RadGridView.Columns>
|
144 |
</telerik:RadGridView>
|
145 |
</GroupBox>
|
146 |
|
147 |
<GroupBox Grid.Row="2" |
148 |
Header="Status 4 under Items" BorderThickness="0" |
149 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
150 |
<telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
151 |
ItemsSource="{Binding RealConvertSource}" |
152 |
SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}" |
153 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" |
154 |
ColumnWidth="*" |
155 |
Grid.Row="1" ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True"> |
156 |
<telerik:RadContextMenu.ContextMenu>
|
157 |
<telerik:RadContextMenu>
|
158 |
<telerik:RadMenuItem Header="Convert" Command="{Binding ConvertCommand}"/> |
159 |
<telerik:RadMenuItem Header="Validation" Command="{Binding ValidateCommand}"/> |
160 |
<telerik:RadMenuItem Header="Delete" Command="{Binding DeleteCommand}"/> |
161 |
</telerik:RadContextMenu>
|
162 |
</telerik:RadContextMenu.ContextMenu>
|
163 |
<telerik:RadGridView.Columns>
|
164 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
165 |
|
166 |
<telerik:GridViewDataColumn Header="Convert ID " |
167 |
DataMemberBinding="{Binding ConvertID}" MinWidth="180" /> |
168 |
|
169 |
<telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}"> |
170 |
<telerik:GridViewDataColumn.CellTemplate>
|
171 |
<DataTemplate>
|
172 |
<!--<telerik:RadButton Content="Click " Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding ElementName=dataGrid2, Path=SelectedItems}"/>-->
|
173 |
<telerik:RadButton Content="Click " BorderThickness="0" Background="Transparent" |
174 |
Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/> |
175 |
</DataTemplate>
|
176 |
</telerik:GridViewDataColumn.CellTemplate>
|
177 |
</telerik:GridViewDataColumn>
|
178 |
|
179 |
<telerik:GridViewDataColumn Header="ProjectNO" |
180 |
DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" /> |
181 |
|
182 |
<telerik:GridViewDataColumn Header="ConvertState" |
183 |
DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" /> |
184 |
|
185 |
<telerik:GridViewDataColumn Header="CurrentPageNo" |
186 |
DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" /> |
187 |
<telerik:GridViewDataColumn Header="TotalPage" |
188 |
DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" /> |
189 |
<!--<telerik:GridViewDataColumn Header=" OriginfilePath"
|
190 |
DataMemberBinding="{Binding OriginfilePath}" MinWidth="170"/>-->
|
191 |
<telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일" |
192 |
NavigateUrlFormatString="{}{0}" |
193 |
NavigateUrlMemberPaths="OriginfilePath" |
194 |
Width="150"> |
195 |
<telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
196 |
<DataTemplate>
|
197 |
<TextBlock Text="{Binding FileName}"/> |
198 |
</DataTemplate>
|
199 |
</telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
|
200 |
</telerik:GridViewDynamicHyperlinkColumn>
|
201 |
<telerik:GridViewDataColumn Header=" ConvertPath" |
202 |
DataMemberBinding="{Binding ConvertPath}" MinWidth="70" /> |
203 |
<telerik:GridViewDataColumn Header="CreateTime" |
204 |
DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" /> |
205 |
<telerik:GridViewDataColumn Header="Exception" |
206 |
DataMemberBinding="{Binding Exception}"/> |
207 |
<telerik:GridViewDataColumn Header="ProcessorAffinity" |
208 |
DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" /> |
209 |
<telerik:GridViewDataColumn Header="ReConverter" |
210 |
DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" /> |
211 |
<telerik:GridViewDataColumn Header="UniqueKey" |
212 |
DataMemberBinding="{Binding UniqueKey}" MinWidth="60" /> |
213 |
|
214 |
<telerik:GridViewDataColumn Header="REVISION" |
215 |
DataMemberBinding="{Binding Revision}"/> |
216 |
<telerik:GridViewDataColumn Header="DOCUMENT_NO" |
217 |
DataMemberBinding="{Binding DocumnetNo}"/> |
218 |
<telerik:GridViewDataColumn Header="DOCUMENT_NAME" |
219 |
DataMemberBinding="{Binding DocumnetName}"/> |
220 |
<telerik:GridViewDataColumn Header="GROUP_NO" |
221 |
DataMemberBinding="{Binding GroupNo}"/> |
222 |
<telerik:GridViewDataColumn Header="Validation" |
223 |
DataMemberBinding="{Binding Validation}"/> |
224 |
<telerik:GridViewDataColumn Header="Service ID" |
225 |
DataMemberBinding="{Binding ServiceID}" MinWidth="250"/> |
226 |
</telerik:RadGridView.Columns>
|
227 |
</telerik:RadGridView>
|
228 |
</GroupBox>
|
229 |
<GroupBox Grid.Row="3" |
230 |
Header="Alive Items" Margin="3" BorderThickness="0" |
231 |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" > |
232 |
<telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
233 |
ItemsSource="{Binding AliveItems}" |
234 |
AutoGenerateColumns="False" CanUserFreezeColumns="False" |
235 |
ColumnWidth="*" ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" > |
236 |
<!--<telerik:RadGridView ItemsSource="{Binding Source={StaticResource AliveViewModel}}" AutoGenerateColumns="False"
|
237 |
x:Name="DataGrid" ScrollViewer.CanContentScroll="False"> DataContext="{Binding Mode=OneWay}"-->
|
238 |
<telerik:RadGridView.Columns>
|
239 |
<controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" /> |
240 |
<telerik:GridViewDataColumn Header="Convert ID" DataMemberBinding="{Binding ConvertID}" /> |
241 |
<telerik:GridViewDataColumn Header="Project No" DataMemberBinding="{Binding ProjectNumber}"/> |
242 |
<telerik:GridViewDataColumn Header="Status" DataMemberBinding="{Binding ConvertState}"/> |
243 |
<telerik:GridViewDataColumn Header="Current Page" DataMemberBinding="{Binding CurrentPageNo}"/> |
244 |
<telerik:GridViewDataColumn Header="TotalPage" DataMemberBinding="{Binding TotalPage}"/> |
245 |
<telerik:GridViewDataColumn Header="Originfile" DataMemberBinding="{Binding OriginfilePath}"/> |
246 |
<telerik:GridViewDataColumn Header="Output Path" DataMemberBinding="{Binding ConvertPath}"/> |
247 |
<telerik:GridViewDataColumn Header="Service ID" DataMemberBinding="{Binding ServiceID}"/> |
248 |
</telerik:RadGridView.Columns>
|
249 |
</telerik:RadGridView>
|
250 |
</GroupBox>
|
251 |
|
252 |
|
253 |
<Grid Grid.Row="4"> |
254 |
<RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible" |
255 |
IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto" |
256 |
Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}" |
257 |
Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"> |
258 |
<controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}" |
259 |
PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/> |
260 |
</RichTextBox>
|
261 |
</Grid>
|
262 |
<!-- <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>
|
263 |
<local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>-->
|
264 |
</Grid>
|
265 |
</UserControl>
|