프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (17.1 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="{x:Type telerik:GridViewHeaderCell}">
16
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
17
            <Setter Property="Background" Value="Gray"/>
18
        </Style>
19
        <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
    </UserControl.Resources>
27
    <!--<UserControl.DataContext>
28
        <VM:DataBaseItemsModel/>
29
    </UserControl.DataContext>-->
30

    
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
            <RowDefinition Height="*"/>
46
            <RowDefinition Height="100"/>
47
        </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
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}" SelectedIndex="4"
56
               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
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
65
                                                         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
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
71
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
72
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
73
                    </telerik:RadContextMenu>
74
                </telerik:RadContextMenu.ContextMenu>
75

    
76
                <telerik:RadGridView.Columns>
77
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
78
                    <telerik:GridViewDataColumn Header="Convert ID "
79
                                                                                        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
                    <telerik:GridViewDataColumn Header="ProjectNO" 
88
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
89

    
90
                    <telerik:GridViewDataColumn Header="ConvertState"
91
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
92

    
93
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
94
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
95
                    <telerik:GridViewDataColumn Header="TotalPage"
96
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60"  />
97
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
98
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
99
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
100
                                                        NavigateUrlFormatString=" {0}"
101
                                                                                                            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

    
110
                    <telerik:GridViewDataColumn Header=" ConvertPath"
111
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
112
                    <telerik:GridViewDataColumn Header="CreateTime" 
113
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
114
                    <telerik:GridViewDataColumn Header="Exception"
115
                                                                                        DataMemberBinding="{Binding Exception}"/>
116
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
117
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" />
118
                    <telerik:GridViewDataColumn Header="ReConverter"
119
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" />
120
                    <telerik:GridViewDataColumn Header="UniqueKey"
121
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
122

    
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
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250" />
135
                </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
            <telerik:RadGridView Name="dataGrid2" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
143
                                                         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
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
151
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
152
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
153
                    </telerik:RadContextMenu>
154
                </telerik:RadContextMenu.ContextMenu>
155
                <telerik:RadGridView.Columns>
156
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
157

    
158
                    <telerik:GridViewDataColumn Header="Convert ID "
159
                                                                                        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
                    <telerik:GridViewDataColumn Header="ProjectNO" 
171
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" />
172

    
173
                    <telerik:GridViewDataColumn Header="ConvertState"
174
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" />
175

    
176
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
177
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" />
178
                    <telerik:GridViewDataColumn Header="TotalPage"
179
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" />
180
                    <!--<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
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" />
194
                    <telerik:GridViewDataColumn Header="CreateTime"
195
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" />
196
                    <telerik:GridViewDataColumn Header="Exception"
197
                                                                                        DataMemberBinding="{Binding Exception}"/>
198
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
199
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" />
200
                    <telerik:GridViewDataColumn Header="ReConverter"
201
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" />
202
                    <telerik:GridViewDataColumn Header="UniqueKey"
203
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" />
204

    
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
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250"/>
217
                </telerik:RadGridView.Columns>
218
            </telerik:RadGridView>
219
        </GroupBox>
220
        <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
                                                         ItemsSource="{Binding AliveItems}" 
225
                                                         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
    </Grid>
256
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)