프로젝트

일반

사용자정보

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

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

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

1 a6e5055d alzkakdixm
<UserControl x:Class="Markus.Service.StationController.Views.DataBaseView"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
7
        xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel"
8
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
9
        mc:Ignorable="d"  Background="White"
10
        d:DesignHeight="450" d:DesignWidth="800">
11
12
    <UserControl.Resources>
13
        <Style TargetType="telerik:GridViewHeaderCell">
14
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
15
            <Setter Property="Background" Value="Gray"/>
16
        </Style>
17
    </UserControl.Resources>
18
19
    <UserControl.DataContext>
20
        <VM:DataBaseItemsModel/>
21
    </UserControl.DataContext>
22
23
    <i:Interaction.Triggers>
24
        <i:EventTrigger  EventName="Loaded">
25
            <i:InvokeCommandAction Command="{Binding LoadedCommand}"/>
26
        </i:EventTrigger>
27
        <i:EventTrigger  EventName="Unloaded">
28
            <i:InvokeCommandAction Command="{Binding ClosingCommand}"/>
29
        </i:EventTrigger>
30
    </i:Interaction.Triggers>
31
32
    <Grid HorizontalAlignment="Left">
33
        <Grid.RowDefinitions>
34
            <RowDefinition Height="Auto"/>
35
            <RowDefinition Height="*"/>
36
            <RowDefinition Height="*"/>
37
        </Grid.RowDefinitions>
38
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
39
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
40
            <telerik:RadComboBox x:Name="ComboCount" Width="100" SelectedItem="{Binding SelectedCount, Mode=TwoWay}" Margin="0,0,10,0" SelectedValuePath="DisplayMember"
41
              DisplayMemberPath="ValueMember" ItemsSource="{Binding SelectedCountList}" SelectedIndex="0" />
42
            <!--SelectedIndex 디폴트 값 ItemsSource콤보박스에 넣을 값 중 DisplayMemberPath 키와 값중 화면에 보여질거 선택 SelectedValuePath 콤보박스 아이템 선택하면 SelectedItem에 DisplayMember이 값나감-->
43
            <!--SelectedItem : object값 리턴-->
44
            <TextBlock Text="Status Type : " Margin="10,0,0,0"  VerticalAlignment="Center"/>
45
            <telerik:RadComboBox Width="100" SelectedItem="{Binding SelectedStatus, Mode=TwoWay}"
46
               DisplayMemberPath="DisplayName" SelectedValuePath="Value" ItemsSource="{Binding StatusCodeList}" Height="20"/>
47
            <telerik:RadToggleButton Content="  엑셀 저장  " Margin="10,0" Height="20" Command="{Binding DataSaveFileGemBoxCommand, Mode=OneWay}"/>
48
        </StackPanel>
49
        <GroupBox Grid.Row="1"
50
                  Header="DataBase Items"  BorderThickness="0" 
51
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
52
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
53
                                                         ItemsSource="{Binding FilterConvertSource}"
54
                             SelectedItem="{Binding SelectFilterConvert}"
55
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
56
                             ColumnWidth="*"
57
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" >
58
                <telerik:RadContextMenu.ContextMenu>
59
                    <telerik:RadContextMenu x:Name= "GridContextMenu">
60
                        <telerik:RadContextMenu.Items>
61
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" ItemsSource="{Binding SelectedItem}" />
62
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}" ItemsSource="{Binding SelectedItem}"/>
63
                        </telerik:RadContextMenu.Items>
64
                    </telerik:RadContextMenu>
65
                </telerik:RadContextMenu.ContextMenu>
66
67
                <telerik:RadGridView.Columns>
68
                    <telerik:GridViewDataColumn Header="Service ID"
69
                                                                                        DataMemberBinding="{Binding ServiceID }"  MinWidth="250" MaxWidth="270"/>
70
                    <telerik:GridViewDataColumn Header="Convert ID "
71
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
72
                    <telerik:GridViewDataColumn Header="ProjectNO" 
73
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
74
75
                    <telerik:GridViewDataColumn Header="ConvertState"
76
                                                                                        DataMemberBinding="{Binding ConvertState,Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
77
78
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
79
                                                                                        DataMemberBinding="{Binding CurrentPageNo,Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
80
                    <telerik:GridViewDataColumn Header="TotalPage"
81
                                                                                        DataMemberBinding="{Binding TotalPage}" MinWidth="60" MaxWidth="80" />
82
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
83
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
84
                    <telerik:GridViewDynamicHyperlinkColumn Header="원본파일"
85
                                                        NavigateUrlFormatString="{} {0}"
86
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
87
                                                                                                                Width="150">
88
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
89
                            <DataTemplate>
90
                                <TextBlock Text="{Binding FileName}"/>
91
                            </DataTemplate>
92
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
93
                    </telerik:GridViewDynamicHyperlinkColumn>
94
                    
95
                    <telerik:GridViewDataColumn Header=" ConvertPath"
96
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
97
                    <telerik:GridViewDataColumn Header="CreateTime" 
98
                                                                                        DataMemberBinding="{Binding CreateTime , StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
99
                    <telerik:GridViewDataColumn Header="Exception"
100
                                                                                        DataMemberBinding="{Binding Exception}" MinWidth="60" MaxWidth="80"/>
101
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
102
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
103
                    <telerik:GridViewDataColumn Header="ReConverter"
104
                                                                                        DataMemberBinding="{Binding ReConverter}" MinWidth="70" MaxWidth="90"/>
105
                    <telerik:GridViewDataColumn Header="UniqueKey"
106
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
107
                </telerik:RadGridView.Columns>
108
            </telerik:RadGridView>
109
        </GroupBox>
110
111
        <GroupBox Grid.Row="2"
112
                  Header="Status 4 under Items"  BorderThickness="0" 
113
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
114
            <telerik:RadGridView GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
115
                                                         ItemsSource="{Binding RealConvertSource}"
116
                             SelectedItem="{Binding SelectRealConvert, Mode=TwoWay}"
117
                                                         AutoGenerateColumns="False" CanUserFreezeColumns="False"
118
                             ColumnWidth="*" 
119
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
120
                <telerik:RadContextMenu.ContextMenu>
121
                    <telerik:RadContextMenu>
122
                        <telerik:RadContextMenu.Items>
123
                            <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}" ItemsSource="{Binding SelectedItem}" />
124
                            <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}" ItemsSource="{Binding SelectedItem}"/>
125
                        </telerik:RadContextMenu.Items>
126
                    </telerik:RadContextMenu>
127
                </telerik:RadContextMenu.ContextMenu>
128
                <telerik:RadGridView.Columns>
129
                    <telerik:GridViewDataColumn Header="Service ID"
130
                                                                                        DataMemberBinding="{Binding ServiceID }"  MinWidth="250" MaxWidth="270"/>
131
                    <telerik:GridViewDataColumn Header="Convert ID "
132
                                                                                        DataMemberBinding="{Binding ConvertID}" MinWidth="180" MaxWidth="200" />
133
                    <telerik:GridViewDataColumn Header="ProjectNO" 
134
                                                                                        DataMemberBinding="{Binding ProjectNumber}" MinWidth="50" MaxWidth="70"/>
135
136
                    <telerik:GridViewDataColumn Header="ConvertState"
137
                                                                                        DataMemberBinding="{Binding ConvertState,Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
138
139
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
140
                                                                                        DataMemberBinding="{Binding CurrentPageNo,Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
141
                    <telerik:GridViewDataColumn Header="TotalPage"
142
                                                                                        DataMemberBinding="{Binding TotalPage,Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
143
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
144
                                                                                        DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
145
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
146
                                                        NavigateUrlFormatString="{}{0}"
147
                                                                                                            NavigateUrlMemberPaths="OriginfilePath"
148
                                                                                                                Width="150">
149
                        <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
150
                            <DataTemplate>
151
                                <TextBlock Text="{Binding FileName}"/>
152
                            </DataTemplate>
153
                        </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
154
                    </telerik:GridViewDynamicHyperlinkColumn>
155
                    <telerik:GridViewDataColumn Header=" ConvertPath"
156
                                                                                        DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
157
                    <telerik:GridViewDataColumn Header="CreateTime"
158
                                                                                        DataMemberBinding="{Binding CreateTime , StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/> 
159
                    <telerik:GridViewDataColumn Header="Exception"
160
                                                                                        DataMemberBinding="{Binding Exception}" MinWidth="60" MaxWidth="80"/>
161
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
162
                                                                                        DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
163
                    <telerik:GridViewDataColumn Header="ReConverter"
164
                                                                                        DataMemberBinding="{Binding ReConverter}" MinWidth="70" MaxWidth="90"/>
165
                    <telerik:GridViewDataColumn Header="UniqueKey"
166
                                                                                        DataMemberBinding="{Binding UniqueKey}" MinWidth="60" MaxWidth="80"/>
167
                </telerik:RadGridView.Columns>
168
            </telerik:RadGridView>
169
        </GroupBox>
170
    </Grid>
171
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)