프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ServiceBase / Markus.Service.StationController / Views / DataBaseView.xaml @ b63dcfbb

이력 | 보기 | 이력해설 | 다운로드 (21.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
            <!--<telerik:RadToggleButton Content=" Filter" Command="{Binding DataFilterCommand, Mode=OneWay}"/>-->
61
        </StackPanel>
62
        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
63
            <Grid.ColumnDefinitions>
64
                <ColumnDefinition Width="387*"/>
65
                <ColumnDefinition Width="13*"/>
66
            </Grid.ColumnDefinitions>
67
            <Grid.RowDefinitions>
68
                <RowDefinition Height="*"/>
69
                <RowDefinition Height="*" />
70
                <RowDefinition Height="Auto"/>
71
                <RowDefinition Height="Auto"/>
72
            </Grid.RowDefinitions>
73
            <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0"  Grid.Row="0" IsExpanded="False" telerik:AnimationManager.IsAnimationEnabled="False">
74
                <StackPanel Orientation="Vertical">
75
                        <controls:DatabaseFilter ProjectNo="{Binding ProjectNumberFilter,Mode=TwoWay}" UniqueKey="{Binding UniqueKeyFilter,Mode=TwoWay}" Service_ID="{Binding Service_IDFilter, Mode=TwoWay}"
76
                                             Docuemnt_Name="{Binding Docuemnt_NameFilter, Mode=TwoWay}" Docuemnt_NO="{Binding Docuemnt_NOFilter, Mode=TwoWay}" Reconverter="{Binding ReconverterFilter, Mode=TwoWay}"
77
                                             Revision="{Binding RevisionFilter, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
78
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
79
                        <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
80
                        <telerik:RadToggleButton Content=" 원상복귀" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
81
                    </StackPanel>
82
                </StackPanel>
83
            </telerik:RadExpander>
84

    
85
            <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" MaxHeight="700" Grid.Row="1"
86
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True"
87
                             telerik:AnimationManager.IsAnimationEnabled="False" Margin="0,0,0,17">
88

    
89
                <telerik:RadExpander.Header>
90
                    <Grid>
91
                        <Grid.ColumnDefinitions>
92
                            <ColumnDefinition Width="Auto"/>
93
                            <ColumnDefinition Width="Auto"/>
94
                        </Grid.ColumnDefinitions>
95
                        <TextBlock Text="DataBase Items : "/>
96
                        <TextBlock Text="{Binding SelectedCount.DisplayMember, StringFormat=\{0:d\}}" Grid.Column="1"/>
97
                    </Grid>
98
                </telerik:RadExpander.Header>
99
                <!--ItemsSource="{Binding FilterConvertSource}" -->
100
                <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
101
                                                         ItemsSource="{Binding FilterConvertSourceView}"
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
            
161
            <telerik:RadExpander Grid.Row="2" ExpandDirection="Down" BorderThickness="0" 
162
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
163
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
164
                <telerik:RadExpander.Header>
165
                    <Grid>
166
                        <Grid.ColumnDefinitions>
167
                            <ColumnDefinition Width="Auto"/>
168
                            <ColumnDefinition Width="Auto"/>
169
                        </Grid.ColumnDefinitions>
170
                        <TextBlock Text="RealConvert Items : "/>
171
                        <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
172
                    </Grid>
173
                </telerik:RadExpander.Header>
174
                <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
175
                                                         ItemsSource="{Binding RealConvertSource}"
176
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
177
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
178
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
179
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
180
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
181
                    <telerik:RadContextMenu.ContextMenu>
182
                        <telerik:RadContextMenu>
183
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
184
                            <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
185
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
186
                        </telerik:RadContextMenu>
187
                    </telerik:RadContextMenu.ContextMenu>
188
                    <telerik:RadGridView.Columns>
189
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
190

    
191
                        <telerik:GridViewDataColumn Header="Convert ID "
192
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="1.5*" />
193

    
194
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
195
                            <telerik:GridViewDataColumn.CellTemplate>
196
                                <DataTemplate>
197
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
198
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
199
                                </DataTemplate>
200
                            </telerik:GridViewDataColumn.CellTemplate>
201
                        </telerik:GridViewDataColumn>
202

    
203
                        <telerik:GridViewDataColumn Header="ProjectNO" 
204
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
205
                        <telerik:GridViewDataColumn Header="UniqueKey"
206
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
207
                        <telerik:GridViewDataColumn Header="ConvertState"
208
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
209

    
210
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
211
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
212
                        <telerik:GridViewDataColumn Header="TotalPageNo"
213
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
214
                        <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
215
                                                        NavigateUrlFormatString="{}{0}"
216
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
217
                                                                                                                Width="2*">
218
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
219
                                <DataTemplate>
220
                                    <TextBlock Text="{Binding FileName}"/>
221
                                </DataTemplate>
222
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
223
                        </telerik:GridViewDynamicHyperlinkColumn>
224
                        <telerik:GridViewDataColumn Header=" ConvertPath"
225
                                                                                        DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
226
                        <telerik:GridViewDataColumn Header="CreateTime"
227
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
228
                        <telerik:GridViewDataColumn Header="StartTime"
229
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
230
                        <telerik:GridViewDataColumn Header="EndTime"
231
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
232
                    </telerik:RadGridView.Columns>
233
                </telerik:RadGridView>
234
            </telerik:RadExpander>
235
            
236
            
237
            
238
            <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch"
239
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
240
                             telerik:AnimationManager.IsAnimationEnabled="False" >
241
                <telerik:RadExpander.Header>
242
                    <Grid>
243
                        <Grid.RowDefinitions>
244
                            <RowDefinition Height="11*"/>
245
                            <RowDefinition Height="5*"/>
246
                        </Grid.RowDefinitions>
247
                        <Grid.ColumnDefinitions>
248
                            <ColumnDefinition Width="Auto"/>
249
                            <ColumnDefinition Width="Auto"/>
250
                        </Grid.ColumnDefinitions>
251
                        <TextBlock Text="Alive Items : " Grid.RowSpan="2"/>
252
                        <TextBlock Text="{Binding AliveItems.Count, StringFormat=\{0:d\}}" Grid.Column="1" Grid.RowSpan="2"/>
253
                    </Grid>
254
                </telerik:RadExpander.Header>
255
                <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
256
                                                         ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected"
257
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
258
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
259
                    <telerik:RadGridView.Columns>
260
                        <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
261

    
262
                        <telerik:GridViewDataColumn Header="Convert ID "
263
                                                                                        DataMemberBinding="{Binding ConvertID}" Width="1.5*"  />
264

    
265
                        <telerik:GridViewDataColumn Header="Markus " Width="0.5*" CellStyle="{StaticResource StretchCellStyle}">
266
                            <telerik:GridViewDataColumn.CellTemplate>
267
                                <DataTemplate>
268
                                    <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
269
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
270
                                </DataTemplate>
271
                            </telerik:GridViewDataColumn.CellTemplate>
272
                        </telerik:GridViewDataColumn>
273

    
274
                        <telerik:GridViewDataColumn Header="ProjectNO" 
275
                                                                                        DataMemberBinding="{Binding ProjectNumber}" Width="*" />
276
                        <telerik:GridViewDataColumn Header="UniqueKey"
277
                                                                                        DataMemberBinding="{Binding UniqueKey}" Width="*" />
278
                        <telerik:GridViewDataColumn Header="ConvertState"
279
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" Width="*" />
280

    
281
                        <telerik:GridViewDataColumn Header="CurrentPageNo"
282
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
283
                        <telerik:GridViewDataColumn Header="TotalPageNo"
284
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
285
                        <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
286
                                                        NavigateUrlFormatString="{}{0}"
287
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
288
                                                                                                                Width="*">
289
                            <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
290
                                <DataTemplate>
291
                                    <TextBlock Text="{Binding FileName}"/>
292
                                </DataTemplate>
293
                            </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
294
                        </telerik:GridViewDynamicHyperlinkColumn>
295
                        <telerik:GridViewDataColumn Header=" ConvertPath"
296
                                                                                        DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
297
                        <telerik:GridViewDataColumn Header="CreateTime"
298
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
299
                        <telerik:GridViewDataColumn Header="StartTime"
300
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
301
                        <telerik:GridViewDataColumn Header="EndTime"
302
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
303
                    </telerik:RadGridView.Columns>
304
                </telerik:RadGridView>
305
            </telerik:RadExpander>
306
        </Grid>
307
    </Grid>
308
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)