프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (15.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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
10
             xmlns:local="clr-namespace:Markus.Service.StationController.Views" x:Class="Markus.Service.StationController.Views.DataBaseView"
11
             mc:Ignorable="d"  Background="White"
12
        d:DesignHeight="450" d:DesignWidth="800">
13

    
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
    </UserControl.Resources>
20

    
21
    <UserControl.DataContext>
22
        <VM:DataBaseItemsModel/>
23
    </UserControl.DataContext>
24

    
25
    <i:Interaction.Triggers>
26
        <i:EventTrigger  EventName="Loaded">
27
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
28
        </i:EventTrigger>
29
        <i:EventTrigger  EventName="Unloaded">
30
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
31
        </i:EventTrigger>
32
    </i:Interaction.Triggers>
33

    
34
    <Grid HorizontalAlignment="Left">
35
        <Grid.RowDefinitions>
36
            <RowDefinition Height="Auto"/>
37
            <RowDefinition Height="*"/>
38
            <RowDefinition Height="*"/>
39
            <RowDefinition Height="*"/>
40
            <RowDefinition Height="100"/>
41
        </Grid.RowDefinitions>
42
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
43
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
44
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
45
              DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
46
            <!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감-->
47
            <!--SelectedItem : object값 리턴-->
48
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
49
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}"
50
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
51
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
52
        </StackPanel>
53
        <GroupBox Grid.Row="1"
54
                  Header="DataBase Items"  BorderThickness="0" 
55
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
56
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
57
                                                         ItemsSource="{Binding FilterConvertSource}"
58
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
59
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
60
                             ColumnWidth="*"
61
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" >
62
                <telerik:RadContextMenu.ContextMenu>
63
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
64
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
65
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
66
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
67
                    </telerik:RadContextMenu>
68
                </telerik:RadContextMenu.ContextMenu>
69

    
70
                <telerik:RadGridView.Columns>
71
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
72
                    <telerik:GridViewDataColumn Header="Convert ID "
73
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
74
                    <telerik:GridViewDataColumn Header="ProjectNO" 
75
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
76

    
77
                    <telerik:GridViewDataColumn Header="ConvertState"
78
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
79

    
80
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
81
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
82
                    <telerik:GridViewDataColumn Header="TotalPage"
83
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
84
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
85
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
86
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
87
                                                        NavigateUrlFormatString=" {0}"
88
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
89
                                                                                                                Width="150">
90
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
91
                            <DataTemplate>
92
                                <TextBlock Text="{Binding FileName}"/>
93
                            </DataTemplate>
94
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
95
                    </telerik:GridViewDynamicHyperlinkColumn>
96

    
97
                    <telerik:GridViewDataColumn Header=" ConvertPath"
98
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
99
                    <telerik:GridViewDataColumn Header="CreateTime" 
100
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
101
                    <telerik:GridViewDataColumn Header="Exception"
102
                                                                                        DataMemberBinding="{Binding Exception}"/>
103
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
104
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
105
                    <telerik:GridViewDataColumn Header="ReConverter"
106
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
107
                    <telerik:GridViewDataColumn Header="UniqueKey"
108
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
109

    
110
                    <telerik:GridViewDataColumn Header="REVISION"
111
                                                                                        DataMemberBinding="{Binding Revision}"/>
112
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
113
                                                                                        DataMemberBinding="{Binding DocumnetNo}"/>
114
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
115
                                                                                        DataMemberBinding="{Binding DocumnetName}"/>
116
                    <telerik:GridViewDataColumn Header="GROUP_NO"
117
                                                                                        DataMemberBinding="{Binding GroupNo}"/>
118
                    <telerik:GridViewDataColumn Header="Validation"
119
                                                                                        DataMemberBinding="{Binding Validation}"/>
120
                    <telerik:GridViewDataColumn Header="Service ID"
121
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250" MaxWidth="270"/>
122
                </telerik:RadGridView.Columns>
123
            </telerik:RadGridView>
124
        </GroupBox>
125

    
126
        <GroupBox Grid.Row="2"
127
                  Header="Status 4 under Items"  BorderThickness="0" 
128
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
129
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
130
                                                         ItemsSource="{Binding RealConvertSource}"
131
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
132
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
133
                             ColumnWidth="*" 
134
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
135
                <telerik:RadContextMenu.ContextMenu>
136
                    <telerik:RadContextMenu>
137
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
138
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
139
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
140
                    </telerik:RadContextMenu>
141
                </telerik:RadContextMenu.ContextMenu>
142
                <telerik:RadGridView.Columns>
143
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
144

    
145
                    <telerik:GridViewDataColumn Header="Convert ID "
146
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
147
                    <telerik:GridViewDataColumn Header="ProjectNO" 
148
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
149

    
150
                    <telerik:GridViewDataColumn Header="ConvertState"
151
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
152

    
153
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
154
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
155
                    <telerik:GridViewDataColumn Header="TotalPage"
156
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
157
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
158
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
159
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
160
                                                        NavigateUrlFormatString="{}{0}"
161
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
162
                                                                                                                Width="150">
163
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
164
                            <DataTemplate>
165
                                <TextBlock Text="{Binding FileName}"/>
166
                            </DataTemplate>
167
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
168
                    </telerik:GridViewDynamicHyperlinkColumn>
169
                    <telerik:GridViewDataColumn Header=" ConvertPath"
170
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
171
                    <telerik:GridViewDataColumn Header="CreateTime"
172
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
173
                    <telerik:GridViewDataColumn Header="Exception"
174
                                                                                        DataMemberBinding="{Binding Exception}"/>
175
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
176
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
177
                    <telerik:GridViewDataColumn Header="ReConverter"
178
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
179
                    <telerik:GridViewDataColumn Header="UniqueKey"
180
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
181

    
182
                    <telerik:GridViewDataColumn Header="REVISION"
183
                                                                                        DataMemberBinding="{Binding Revision}"/>
184
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
185
                                                                                        DataMemberBinding="{Binding DocumnetNo}"/>
186
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
187
                                                                                        DataMemberBinding="{Binding DocumnetName}"/>
188
                    <telerik:GridViewDataColumn Header="GROUP_NO"
189
                                                                                        DataMemberBinding="{Binding GroupNo}"/>
190
                    <telerik:GridViewDataColumn Header="Validation"
191
                                                                                        DataMemberBinding="{Binding Validation}"/>
192
                    <telerik:GridViewDataColumn Header="Service ID"
193
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250" MaxWidth="270"/>
194
                </telerik:RadGridView.Columns>
195
            </telerik:RadGridView>
196
        </GroupBox>
197
        <GroupBox Grid.Row="3"
198
                  Header="Alive Items" Margin="3" BorderThickness="0" 
199
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
200
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
201
                                                         ItemsSource="{Binding AliveItems}" 
202
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
203
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
204
                <!--<telerik:RadGridView ItemsSource="{Binding Source={StaticResource AliveViewModel}}" AutoGenerateColumns="False" 
205
                  x:Name="DataGrid" ScrollViewer.CanContentScroll="False">  DataContext="{Binding Mode=OneWay}"-->
206
                <telerik:RadGridView.Columns>
207
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
208
                    <telerik:GridViewDataColumn  Header="Convert ID" DataMemberBinding="{Binding ConvertID}" />
209
                    <telerik:GridViewDataColumn  Header="Project No" DataMemberBinding="{Binding ProjectNumber}"/>
210
                    <telerik:GridViewDataColumn  Header="Status" DataMemberBinding="{Binding ConvertState}"/>
211
                    <telerik:GridViewDataColumn  Header="Current Page" DataMemberBinding="{Binding CurrentPageNo}"/>
212
                    <telerik:GridViewDataColumn  Header="TotalPage" DataMemberBinding="{Binding TotalPage}"/>
213
                    <telerik:GridViewDataColumn  Header="Originfile" DataMemberBinding="{Binding OriginfilePath}"/>
214
                    <telerik:GridViewDataColumn  Header="Output Path" DataMemberBinding="{Binding ConvertPath}"/>
215
                    <telerik:GridViewDataColumn  Header="Service ID" DataMemberBinding="{Binding ServiceID}"/>
216
                </telerik:RadGridView.Columns>
217
            </telerik:RadGridView>
218
        </GroupBox>
219

    
220

    
221
        <Grid  Grid.Row="4">
222
            <RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible"
223
                         IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto"
224
                         Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
225
                         Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}">
226
                <controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
227
                                        PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/>
228
            </RichTextBox>
229
        </Grid>
230
        <!-- <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>
231
        <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>-->
232
    </Grid>
233
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)