프로젝트

일반

사용자정보

개정판 2decfbdf

ID2decfbdfc05f09bb5b2ef1618d265f315f6ba8f0
상위 1e901a8d
하위 dfc86b71

alzkakdixm 이(가) 약 5년 전에 추가함

DataBaseItemsModel 수정

Change-Id: I96830cad0b3990bb84346f438ba04e20d55ec26c

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/Views/DataBaseView.xaml
1
<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"
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"
10 12
        d:DesignHeight="450" d:DesignWidth="800">
11 13

  
12 14
    <UserControl.Resources>
13
        <Style TargetType="telerik:GridViewHeaderCell">
15
        <!--<CollectionViewSource Source="{Binding AliveItems}" x:Key="AliveViewModel"/>-->
16
        <!--<VM:AliveViewModel x:Key="AliveViewModel" d:IsDataSource="True"/>-->
17
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
14 18
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
15 19
            <Setter Property="Background" Value="Gray"/>
16 20
        </Style>
......
34 38
            <RowDefinition Height="Auto"/>
35 39
            <RowDefinition Height="*"/>
36 40
            <RowDefinition Height="*"/>
41
            <RowDefinition Height="*"/>
42
            <RowDefinition Height="100"/>
37 43
        </Grid.RowDefinitions>
38 44
        <StackPanel Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0"  Height="20" >
39 45
            <TextBlock Text="Display Count : " VerticalAlignment="Center"/>
......
51 57
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
52 58
            <telerik:RadGridView x:Name="dataGrid1"  GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
53 59
							 ItemsSource="{Binding FilterConvertSource}"
54
                             SelectedItem="{Binding SelectFilterConvert}"
60
                             SelectedItem="{Binding SelectFilterConvert, Mode=TwoWay}"
55 61
							 AutoGenerateColumns="False" CanUserFreezeColumns="False"
56 62
                             ColumnWidth="*"
57 63
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True" >
58 64
                <telerik:RadContextMenu.ContextMenu>
59 65
                    <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>
66
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
67
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
68
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
64 69
                    </telerik:RadContextMenu>
65 70
                </telerik:RadContextMenu.ContextMenu>
66 71

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

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

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

  
95 99
                    <telerik:GridViewDataColumn Header=" ConvertPath"
96 100
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
97 101
                    <telerik:GridViewDataColumn Header="CreateTime" 
98
											DataMemberBinding="{Binding CreateTime , StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
102
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
99 103
                    <telerik:GridViewDataColumn Header="Exception"
100
											DataMemberBinding="{Binding Exception}" MinWidth="60" MaxWidth="80"/>
104
											DataMemberBinding="{Binding Exception}"/>
101 105
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
102 106
											DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
103 107
                    <telerik:GridViewDataColumn Header="ReConverter"
104
											DataMemberBinding="{Binding ReConverter}" MinWidth="70" MaxWidth="90"/>
108
											DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
105 109
                    <telerik:GridViewDataColumn Header="UniqueKey"
106 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"/>
107 124
                </telerik:RadGridView.Columns>
108 125
            </telerik:RadGridView>
109 126
        </GroupBox>
......
119 136
                             Grid.Row="1"  ScrollViewer.CanContentScroll="False" IsFilteringAllowed="True">
120 137
                <telerik:RadContextMenu.ContextMenu>
121 138
                    <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>
139
                        <telerik:RadMenuItem  Header="Convert"  Command="{Binding ConvertCommand}"/>
140
                        <telerik:RadMenuItem Header="Validation"  Command="{Binding ValidateCommand}"/>
141
                        <telerik:RadMenuItem Header="Delete"  Command="{Binding DeleteCommand}"/>
126 142
                    </telerik:RadContextMenu>
127 143
                </telerik:RadContextMenu.ContextMenu>
128 144
                <telerik:RadGridView.Columns>
129
                    <telerik:GridViewDataColumn Header="Service ID"
130
											DataMemberBinding="{Binding ServiceID }"  MinWidth="250" MaxWidth="270"/>
145
                    <controls:RowIndexColumn Header="#" Width="30" CellStyle="{StaticResource RowNumberStyle}" />
146

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

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

  
139 155
                    <telerik:GridViewDataColumn Header="CurrentPageNo"
140
											DataMemberBinding="{Binding CurrentPageNo,Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
156
											DataMemberBinding="{Binding CurrentPageNo, Mode=TwoWay}" MinWidth="80" MaxWidth="100"/>
141 157
                    <telerik:GridViewDataColumn Header="TotalPage"
142
											DataMemberBinding="{Binding TotalPage,Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
158
											DataMemberBinding="{Binding TotalPage, Mode=TwoWay}" MinWidth="60" MaxWidth="80" />
143 159
                    <!--<telerik:GridViewDataColumn Header=" OriginfilePath"
144 160
											DataMemberBinding="{Binding  OriginfilePath}" MinWidth="170"/>-->
145 161
                    <telerik:GridViewDynamicHyperlinkColumn x:Name="navigation" Header="원본파일"
......
155 171
                    <telerik:GridViewDataColumn Header=" ConvertPath"
156 172
											DataMemberBinding="{Binding ConvertPath}" MinWidth="70" MaxWidth="90"/>
157 173
                    <telerik:GridViewDataColumn Header="CreateTime"
158
											DataMemberBinding="{Binding CreateTime , StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/> 
174
											DataMemberBinding="{Binding CreateTime, Mode=TwoWay, StringFormat=\{0:yyyy.MM.dd HH:mm:ss\}}" MinWidth="120" MaxWidth="140"/>
159 175
                    <telerik:GridViewDataColumn Header="Exception"
160
											DataMemberBinding="{Binding Exception}" MinWidth="60" MaxWidth="80"/>
176
											DataMemberBinding="{Binding Exception}"/>
161 177
                    <telerik:GridViewDataColumn Header="ProcessorAffinity"
162 178
											DataMemberBinding="{Binding ProcessorAffinity}" MinWidth="90" MaxWidth="110"/>
163 179
                    <telerik:GridViewDataColumn Header="ReConverter"
164
											DataMemberBinding="{Binding ReConverter}" MinWidth="70" MaxWidth="90"/>
180
											DataMemberBinding="{Binding ReConverter, Mode=TwoWay}" MinWidth="70" MaxWidth="90"/>
165 181
                    <telerik:GridViewDataColumn Header="UniqueKey"
166 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"/>
167 196
                </telerik:RadGridView.Columns>
168 197
            </telerik:RadGridView>
169 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,Mode=OneWay}" 
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"/>-->
170 234
    </Grid>
171 235
</UserControl>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)