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