프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (15.6 KB)

1 2decfbdf alzkakdixm
<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 e6281033 alzkakdixm
             xmlns:Data="clr-namespace:Markus.Service.StationController.Data"
10 2decfbdf alzkakdixm
             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"
13 a6e5055d alzkakdixm
        d:DesignHeight="450" d:DesignWidth="800">
14
15
    <UserControl.Resources>
16 2decfbdf alzkakdixm
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
17 a6e5055d alzkakdixm
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
18
            <Setter Property="Background" Value="Gray"/>
19
        </Style>
20
    </UserControl.Resources>
21
22
    <UserControl.DataContext>
23
        <VM:DataBaseItemsModel/>
24
    </UserControl.DataContext>
25
26
    <i:Interaction.Triggers>
27
        <i:EventTrigger  EventName="Loaded">
28
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
29
        </i:EventTrigger>
30
        <i:EventTrigger  EventName="Unloaded">
31
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
32
        </i:EventTrigger>
33
    </i:Interaction.Triggers>
34
35
    <Grid HorizontalAlignment="Left">
36
        <Grid.RowDefinitions>
37
            <RowDefinition Height="Auto"/>
38
            <RowDefinition Height="*"/>
39
            <RowDefinition Height="*"/>
40 2decfbdf alzkakdixm
            <RowDefinition Height="*"/>
41
            <RowDefinition Height="100"/>
42 a6e5055d alzkakdixm
        </Grid.RowDefinitions>
43
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
44
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
45
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
46
              DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
47
            <!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감-->
48
            <!--SelectedItem : object값 리턴-->
49
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
50
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}"
51
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
52
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
53
        </StackPanel>
54
        <GroupBox Grid.Row="1"
55
                  Header="DataBase Items"  BorderThickness="0" 
56
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
57
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
58
                                                         ItemsSource="{Binding FilterConvertSource}"
59 2decfbdf alzkakdixm
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
60 a6e5055d alzkakdixm
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
61
                             ColumnWidth="*"
62
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" >
63
                <telerik:RadContextMenu.ContextMenu>
64
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
65 2decfbdf alzkakdixm
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
66
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
67
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
68 a6e5055d alzkakdixm
                    </telerik:RadContextMenu>
69
                </telerik:RadContextMenu.ContextMenu>
70
71
                <telerik:RadGridView.Columns>
72 2decfbdf alzkakdixm
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
73 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="Convert ID "
74
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
75
                    <telerik:GridViewDataColumn Header="ProjectNO" 
76
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
77
78
                    <telerik:GridViewDataColumn Header="ConvertState"
79 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
80 a6e5055d alzkakdixm
81
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
82 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
83 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="TotalPage"
84 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
85 a6e5055d alzkakdixm
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
86
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
87
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
88 2decfbdf alzkakdixm
                                                        NavigateUrlFormatString=" {0}"
89 a6e5055d alzkakdixm
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
90
                                                                                                                Width="150">
91
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
92
                            <DataTemplate>
93
                                <TextBlock Text="{Binding FileName}"/>
94
                            </DataTemplate>
95
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
96
                    </telerik:GridViewDynamicHyperlinkColumn>
97 2decfbdf alzkakdixm
98 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header=" ConvertPath"
99
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
100
                    <telerik:GridViewDataColumn Header="CreateTime" 
101 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
102 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="Exception"
103 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding Exception}"/>
104 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
105
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
106
                    <telerik:GridViewDataColumn Header="ReConverter"
107 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
108 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="UniqueKey"
109
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
110 2decfbdf alzkakdixm
111
                    <telerik:GridViewDataColumn Header="REVISION"
112
                                                                                        DataMemberBinding="{Binding Revision}"/>
113
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
114
                                                                                        DataMemberBinding="{Binding DocumnetNo}"/>
115
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
116
                                                                                        DataMemberBinding="{Binding DocumnetName}"/>
117
                    <telerik:GridViewDataColumn Header="GROUP_NO"
118
                                                                                        DataMemberBinding="{Binding GroupNo}"/>
119
                    <telerik:GridViewDataColumn Header="Validation"
120
                                                                                        DataMemberBinding="{Binding Validation}"/>
121
                    <telerik:GridViewDataColumn Header="Service ID"
122
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250" MaxWidth="270"/>
123 a6e5055d alzkakdixm
                </telerik:RadGridView.Columns>
124
            </telerik:RadGridView>
125
        </GroupBox>
126
127
        <GroupBox Grid.Row="2"
128
                  Header="Status 4 under Items"  BorderThickness="0" 
129
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
130
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
131
                                                         ItemsSource="{Binding RealConvertSource}"
132
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
133
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
134
                             ColumnWidth="*" 
135
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
136
                <telerik:RadContextMenu.ContextMenu>
137
                    <telerik:RadContextMenu>
138 2decfbdf alzkakdixm
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
139
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
140
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
141 a6e5055d alzkakdixm
                    </telerik:RadContextMenu>
142
                </telerik:RadContextMenu.ContextMenu>
143
                <telerik:RadGridView.Columns>
144 2decfbdf alzkakdixm
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
145
146 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="Convert ID "
147
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
148
                    <telerik:GridViewDataColumn Header="ProjectNO" 
149
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
150
151
                    <telerik:GridViewDataColumn Header="ConvertState"
152 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding ConvertState, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
153 a6e5055d alzkakdixm
154
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
155 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
156 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="TotalPage"
157 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
158 a6e5055d alzkakdixm
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
159
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
160
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
161
                                                        NavigateUrlFormatString="{}{0}"
162
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
163
                                                                                                                Width="150">
164
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
165
                            <DataTemplate>
166
                                <TextBlock Text="{Binding FileName}"/>
167
                            </DataTemplate>
168
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
169
                    </telerik:GridViewDynamicHyperlinkColumn>
170
                    <telerik:GridViewDataColumn Header=" ConvertPath"
171
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
172
                    <telerik:GridViewDataColumn Header="CreateTime"
173 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
174 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="Exception"
175 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding Exception}"/>
176 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
177
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
178
                    <telerik:GridViewDataColumn Header="ReConverter"
179 2decfbdf alzkakdixm
                                                                                        DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
180 a6e5055d alzkakdixm
                    <telerik:GridViewDataColumn Header="UniqueKey"
181
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
182 2decfbdf alzkakdixm
183
                    <telerik:GridViewDataColumn Header="REVISION"
184
                                                                                        DataMemberBinding="{Binding Revision}"/>
185
                    <telerik:GridViewDataColumn Header="DOCUMENT_NO"
186
                                                                                        DataMemberBinding="{Binding DocumnetNo}"/>
187
                    <telerik:GridViewDataColumn Header="DOCUMENT_NAME"
188
                                                                                        DataMemberBinding="{Binding DocumnetName}"/>
189
                    <telerik:GridViewDataColumn Header="GROUP_NO"
190
                                                                                        DataMemberBinding="{Binding GroupNo}"/>
191
                    <telerik:GridViewDataColumn Header="Validation"
192
                                                                                        DataMemberBinding="{Binding Validation}"/>
193
                    <telerik:GridViewDataColumn Header="Service ID"
194
                                                                                        DataMemberBinding="{Binding ServiceID}"  MinWidth="250" MaxWidth="270"/>
195 a6e5055d alzkakdixm
                </telerik:RadGridView.Columns>
196
            </telerik:RadGridView>
197
        </GroupBox>
198 2decfbdf alzkakdixm
        <GroupBox Grid.Row="3"
199
                  Header="Alive Items" Margin="3" BorderThickness="0" 
200
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" >
201
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
202 dfc86b71 taeseongkim
                                                         ItemsSource="{Binding AliveItems}" 
203 2decfbdf alzkakdixm
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
204
                             ColumnWidth="*"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" Grid.Row="1" >
205
                <!--<telerik:RadGridView ItemsSource="{Binding Source={StaticResource AliveViewModel}}" AutoGenerateColumns="False" 
206
                  x:Name="DataGrid" ScrollViewer.CanContentScroll="False">  DataContext="{Binding Mode=OneWay}"-->
207
                <telerik:RadGridView.Columns>
208
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
209
                    <telerik:GridViewDataColumn  Header="Convert ID" DataMemberBinding="{Binding ConvertID}" />
210
                    <telerik:GridViewDataColumn  Header="Project No" DataMemberBinding="{Binding ProjectNumber}"/>
211
                    <telerik:GridViewDataColumn  Header="Status" DataMemberBinding="{Binding ConvertState}"/>
212
                    <telerik:GridViewDataColumn  Header="Current Page" DataMemberBinding="{Binding CurrentPageNo}"/>
213
                    <telerik:GridViewDataColumn  Header="TotalPage" DataMemberBinding="{Binding TotalPage}"/>
214
                    <telerik:GridViewDataColumn  Header="Originfile" DataMemberBinding="{Binding OriginfilePath}"/>
215
                    <telerik:GridViewDataColumn  Header="Output Path" DataMemberBinding="{Binding ConvertPath}"/>
216
                    <telerik:GridViewDataColumn  Header="Service ID" DataMemberBinding="{Binding ServiceID}"/>
217
                </telerik:RadGridView.Columns>
218
            </telerik:RadGridView>
219
        </GroupBox>
220
221
222
        <Grid  Grid.Row="4">
223
            <RichTextBox IsReadOnly="True" AllowDrop="False" VerticalScrollBarVisibility="Visible"
224
                         IsUndoEnabled="False" HorizontalScrollBarVisibility="Auto"
225
                         Height="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
226
                         Width="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}">
227
                <controls:TraceDocument PageWidth="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
228
                                        PageHeight="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"/>
229
            </RichTextBox>
230
        </Grid>
231
        <!-- <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>
232
        <local:DataBaseView HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100"/>-->
233 a6e5055d alzkakdixm
    </Grid>
234
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)