프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (22.5 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="1000">
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="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch">
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/>
69
            </Grid.RowDefinitions>
70
            <StackPanel Orientation="Vertical" MaxHeight="850" Grid.Row="0">
71
                <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0"  Grid.Row="0" IsExpanded="False"  telerik:AnimationManager.IsAnimationEnabled="False" DockPanel.Dock="Top">
72
                    <StackPanel Orientation="Vertical">
73
                        <controls:DatabaseFilter ProjectNo="{Binding ProjectNumberFilter,Mode=TwoWay}" UniqueKey="{Binding UniqueKeyFilter,Mode=TwoWay}" Service_ID="{Binding Service_IDFilter, Mode=TwoWay}"
74
                                             Docuemnt_Name="{Binding Docuemnt_NameFilter, Mode=TwoWay}" Docuemnt_NO="{Binding Docuemnt_NOFilter, Mode=TwoWay}" Reconverter="{Binding ReconverterFilter, Mode=TwoWay}"
75
                                             Revision="{Binding RevisionFilter, Mode=TwoWay}" GroupNO="{Binding GroupNOFilter, Mode=TwoWay}"/>
76
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
77
                            <telerik:RadToggleButton Content=" Convert 추가" Command="{Binding ConverAddCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
78
                            <telerik:RadToggleButton Content=" 검색" Command="{Binding DataFilterCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
79
                            <telerik:RadToggleButton Content=" 원상복귀" Command="{Binding ResetCommand, Mode=OneWay}" Width="100" Margin="0,0,20,0" HorizontalAlignment="Right"/>
80
                        </StackPanel>
81
                    </StackPanel>
82
                </telerik:RadExpander>
83

    
84
                <DockPanel LastChildFill="True">
85
                    <telerik:RadExpander ExpandDirection="Down"  BorderThickness="0" Grid.Row="1" MaxHeight="{Binding DataBase_ItemsHeight, Mode=OneWay}"
86
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto"  IsExpanded="True" 
87
                             telerik:AnimationManager.IsAnimationEnabled="False" >
88
                        <telerik:RadExpander.Header>
89
                            <Grid>
90
                                <Grid.ColumnDefinitions>
91
                                    <ColumnDefinition Width="Auto"/>
92
                                    <ColumnDefinition Width="Auto"/>
93
                                </Grid.ColumnDefinitions>
94
                                <TextBlock Text="DataBase Items : "/>
95
                                <TextBlock Text="{Binding SelectedCount.DisplayMember, StringFormat=\{0:d\}}" Grid.Column="1"/>
96
                            </Grid>
97
                        </telerik:RadExpander.Header>
98
                
99
                        <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  
100
                                                         ItemsSource="{Binding FilterConvertSourceView}" 
101
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
102
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"  
103
                                                         AutoGenerateColumns="False"
104
                             ColumnWidth="*" CanUserFreezeColumns="False"
105
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
106
                             LeftFrozenColumnCount="6" 
107
                             RightFrozenColumnCount="0">
108
                            <telerik:RadContextMenu.ContextMenu>
109
                                <telerik:RadContextMenu x:Name= "GridContextMenu">
110
                                    <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
111
                                    <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
112
                                    <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
113
                                </telerik:RadContextMenu>
114
                            </telerik:RadContextMenu.ContextMenu>
115
                            <telerik:RadGridView.Columns>
116
                                <telerik:GridViewToggleRowDetailsColumn />
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
                </DockPanel>
161
                
162
                <telerik:RadExpander Grid.Row="2" ExpandDirection="Down" BorderThickness="0"  MaxHeight="{Binding RealConvert_Height,Mode=OneWay}"
163
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
164
                             telerik:AnimationManager.IsAnimationEnabled="False" IsExpanded ="{Binding ConvertShow, Mode=TwoWay}">
165
                    <telerik:RadExpander.Header>
166
                        <Grid>
167
                            <Grid.ColumnDefinitions>
168
                                <ColumnDefinition Width="Auto"/>
169
                                <ColumnDefinition Width="Auto"/>
170
                            </Grid.ColumnDefinitions>
171
                            <TextBlock Text="RealConvert Items : "/>
172
                            <TextBlock Text="{Binding RealConvertSource.Count, StringFormat=\{0:d\}}" Grid.Column="1"/>
173
                        </Grid>
174
                    </telerik:RadExpander.Header>
175
                    <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
176
                                                         ItemsSource="{Binding RealConvertSource}"
177
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
178
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
179
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
180
                             ColumnWidth="*"
181
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
182
                        <telerik:RadContextMenu.ContextMenu>
183
                            <telerik:RadContextMenu>
184
                                <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
185
                                <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
186
                                <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
187
                            </telerik:RadContextMenu>
188
                        </telerik:RadContextMenu.ContextMenu>
189
                        <telerik:RadGridView.Columns>
190
                            <telerik:GridViewToggleRowDetailsColumn />
191
                            <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
192

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

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

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

    
212
                            <telerik:GridViewDataColumn Header="CurrentPageNo"
213
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
214
                            <telerik:GridViewDataColumn Header="TotalPageNo"
215
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
216
                            <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
217
                                                        NavigateUrlFormatString="{}{0}"
218
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
219
                                                                                                                Width="2*">
220
                                <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
221
                                    <DataTemplate>
222
                                        <TextBlock Text="{Binding FileName}"/>
223
                                    </DataTemplate>
224
                                </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
225
                            </telerik:GridViewDynamicHyperlinkColumn>
226
                            <telerik:GridViewDataColumn Header=" ConvertPath"
227
                                                                                        DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
228
                            <telerik:GridViewDataColumn Header="CreateTime"
229
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
230
                            <telerik:GridViewDataColumn Header="StartTime"
231
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
232
                            <telerik:GridViewDataColumn Header="EndTime"
233
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
234
                        </telerik:RadGridView.Columns>
235
                    </telerik:RadGridView>
236
                </telerik:RadExpander>
237

    
238
                <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" BorderThickness="0"  VerticalAlignment="Stretch"
239
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"  MaxHeight="{Binding Alive_Height,Mode=OneWay}"
240
                             telerik:AnimationManager.IsAnimationEnabled="False"  IsExpanded ="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}"
257
                             SelectedItem="{Binding SelectAliveConvert, Mode=TwoWay}"
258
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
259
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
260
                        <telerik:RadGridView.Columns>
261
                            <telerik:GridViewToggleRowDetailsColumn />
262
                            <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
263

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

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

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

    
283
                            <telerik:GridViewDataColumn Header="CurrentPageNo"
284
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" Width="*" />
285
                            <telerik:GridViewDataColumn Header="TotalPageNo"
286
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" Width="*" />
287
                            <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
288
                                                        NavigateUrlFormatString="{}{0}"
289
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
290
                                                                                                                Width="2*">
291
                                <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
292
                                    <DataTemplate>
293
                                        <TextBlock Text="{Binding FileName}"/>
294
                                    </DataTemplate>
295
                                </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
296
                            </telerik:GridViewDynamicHyperlinkColumn>
297
                            <telerik:GridViewDataColumn Header=" ConvertPath"
298
                                                                                        DataMemberBinding="{Binding ConvertPath}" Width="2.5*" />
299
                            <telerik:GridViewDataColumn Header="CreateTime"
300
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
301
                            <telerik:GridViewDataColumn Header="StartTime"
302
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
303
                            <telerik:GridViewDataColumn Header="EndTime"
304
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" Width="*" />
305
                        </telerik:RadGridView.Columns>
306
                    </telerik:RadGridView>
307
                </telerik:RadExpander>
308

    
309
            </StackPanel>
310
        </Grid>
311
    </Grid>
312
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)