프로젝트

일반

사용자정보

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

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

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