프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (18 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="Auto"/>
51
            <RowDefinition Height="Auto"/>
52
            <RowDefinition Height="Auto"/>
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
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
59
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
60
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
61
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
62
        </StackPanel>
63
        <telerik:RadExpander Grid.Row="1" ExpandDirection="Down" Header="DataBase Items"  BorderThickness="0"  MaxHeight="700"
64
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsExpanded="True"
65
                             telerik:AnimationManager.IsAnimationEnabled="False">
66
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
67
                                                         ItemsSource="{Binding FilterConvertSource}"
68
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
69
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
70
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="True"
71
                             ColumnWidth="*" RowDetailsVisibilityMode="VisibleWhenSelected"
72
                             Grid.Row="1"  ScrollViewer.CanContentScroll="True" IsFilteringAllowed="True"
73
                             LeftFrozenColumnCount="6" 
74
                             RightFrozenColumnCount="0">
75
                <telerik:RadContextMenu.ContextMenu>
76
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
77
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
78
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
79
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
80
                    </telerik:RadContextMenu>
81
                </telerik:RadContextMenu.ContextMenu>
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
                    <telerik:GridViewDataColumn Header="UniqueKey"
98
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
99
                    <telerik:GridViewDataColumn Header="ConvertState"
100
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
101
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
102
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
103
                    <telerik:GridViewDataColumn Header="TotalPageNo"
104
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60"  />
105
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
106
                                                        NavigateUrlFormatString=" {0}"
107
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
108
                                                                                                                Width="150">
109
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
110
                            <DataTemplate>
111
                                <TextBlock Text="{Binding FileName}"/>
112
                            </DataTemplate>
113
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
114
                    </telerik:GridViewDynamicHyperlinkColumn>
115
                    <telerik:GridViewDataColumn Header=" ConvertPath"
116
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
117
                    <telerik:GridViewDataColumn Header="CreateTime" 
118
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
119
                    <telerik:GridViewDataColumn Header="StartTime" 
120
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
121
                    <telerik:GridViewDataColumn Header="EndTime" 
122
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
123
                </telerik:RadGridView.Columns>
124
            </telerik:RadGridView>
125
        </telerik:RadExpander>
126
        <telerik:RadExpander Grid.Row="2" ExpandDirection="Down"  Header="Status 4 under Items"  BorderThickness="0" 
127
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
128
                             telerik:AnimationManager.IsAnimationEnabled="False">
129
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
130
                                                         ItemsSource="{Binding RealConvertSource}"
131
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
132
                             RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
133
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
134
                             ColumnWidth="*"  RowDetailsVisibilityMode="VisibleWhenSelected"
135
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
136
                <telerik:RadContextMenu.ContextMenu>
137
                    <telerik:RadContextMenu>
138
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
139
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
140
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
141
                    </telerik:RadContextMenu>
142
                </telerik:RadContextMenu.ContextMenu>
143
                <telerik:RadGridView.Columns>
144
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
145

    
146
                    <telerik:GridViewDataColumn Header="Convert ID "
147
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
148

    
149
                    <telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}">
150
                        <telerik:GridViewDataColumn.CellTemplate>
151
                            <DataTemplate>
152
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
153
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
154
                            </DataTemplate>
155
                        </telerik:GridViewDataColumn.CellTemplate>
156
                    </telerik:GridViewDataColumn>
157

    
158
                    <telerik:GridViewDataColumn Header="ProjectNO" 
159
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
160
                    <telerik:GridViewDataColumn Header="UniqueKey"
161
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
162
                    <telerik:GridViewDataColumn Header="ConvertState"
163
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
164

    
165
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
166
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
167
                    <telerik:GridViewDataColumn Header="TotalPageNo"
168
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
169
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
170
                                                        NavigateUrlFormatString="{}{0}"
171
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
172
                                                                                                                Width="150">
173
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
174
                            <DataTemplate>
175
                                <TextBlock Text="{Binding FileName}"/>
176
                            </DataTemplate>
177
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
178
                    </telerik:GridViewDynamicHyperlinkColumn>
179
                    <telerik:GridViewDataColumn Header=" ConvertPath"
180
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
181
                    <telerik:GridViewDataColumn Header="CreateTime"
182
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
183
                    <telerik:GridViewDataColumn Header="StartTime"
184
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
185
                    <telerik:GridViewDataColumn Header="EndTime"
186
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
187
                </telerik:RadGridView.Columns>
188
            </telerik:RadGridView>
189
        </telerik:RadExpander>
190
        <telerik:RadExpander Grid.Row="3" ExpandDirection="Down" Header="Alive Items" Margin="3" BorderThickness="0" 
191
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
192
                             telerik:AnimationManager.IsAnimationEnabled="False">
193
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
194
                                                         ItemsSource="{Binding AliveItems}" RowDetailsVisibilityMode="VisibleWhenSelected"
195
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsTemplate="{StaticResource RowDetailsTemplate}"
196
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
197
                <telerik:RadGridView.Columns>
198
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
199

    
200
                    <telerik:GridViewDataColumn Header="Convert ID "
201
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180"  />
202

    
203
                    <telerik:GridViewDataColumn Header="MarkusLink " MinWidth="100" CellStyle="{StaticResource StretchCellStyle}">
204
                        <telerik:GridViewDataColumn.CellTemplate>
205
                            <DataTemplate>
206
                                <telerik:RadButton Content="Click "  BorderThickness="0" Background="Transparent"
207
                                                   Command="{Binding MarkusLinkCommand, Source={StaticResource DataBaseItemsModel}}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Self}}"/>
208
                            </DataTemplate>
209
                        </telerik:GridViewDataColumn.CellTemplate>
210
                    </telerik:GridViewDataColumn>
211

    
212
                    <telerik:GridViewDataColumn Header="ProjectNO" 
213
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
214
                    <telerik:GridViewDataColumn Header="UniqueKey"
215
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
216
                    <telerik:GridViewDataColumn Header="ConvertState"
217
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
218

    
219
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
220
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
221
                    <telerik:GridViewDataColumn Header="TotalPageNo"
222
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
223
                    <telerik:GridViewDynamicHyperlinkColumn  Header="원본파일"
224
                                                        NavigateUrlFormatString="{}{0}"
225
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
226
                                                                                                                Width="150">
227
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
228
                            <DataTemplate>
229
                                <TextBlock Text="{Binding FileName}"/>
230
                            </DataTemplate>
231
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
232
                    </telerik:GridViewDynamicHyperlinkColumn>
233
                    <telerik:GridViewDataColumn Header=" ConvertPath"
234
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
235
                    <telerik:GridViewDataColumn Header="CreateTime"
236
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
237
                    <telerik:GridViewDataColumn Header="StartTime"
238
                                                                                        DataMemberBinding="{Binding StartTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
239
                    <telerik:GridViewDataColumn Header="EndTime"
240
                                                                                        DataMemberBinding="{Binding EndTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
241
                </telerik:RadGridView.Columns>
242
            </telerik:RadGridView>
243
            <!--<Grid  Grid.Row="4">
244
                    <RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible"
245
                         IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto"
246
                         Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
247
                         Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}">
248
                        <controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
249
                                        PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/>
250
                    </RichTextBox>
251
                </Grid>-->
252
        </telerik:RadExpander>
253
    </Grid>
254
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)