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