프로젝트

일반

사용자정보

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

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

이력 | 보기 | 이력해설 | 다운로드 (15.7 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
        <!--<CollectionViewSource Source="{Binding AliveItems}" x:Key="AliveViewModel"/>-->
16
        <!--<VM:AliveViewModel x:Key="AliveViewModel" d:IsDataSource="True"/>-->
17
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
18
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
19
            <Setter Property="Background" Value="Gray"/>
20
        </Style>
21
    </UserControl.Resources>
22

    
23
    <UserControl.DataContext>
24
        <VM:DataBaseItemsModel/>
25
    </UserControl.DataContext>
26

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

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

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

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

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

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

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

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

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

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

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

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

    
222

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