개정판 6a19b48d
issue #00000 페이지 이미지 download 로직 수정
Change-Id: I4da03c36b5a135eea80b57b20ada38239afd1082
KCOM/Controls/FavoritePanel.xaml | ||
---|---|---|
1 |
<UserControl x:Class="KCOM.Controls.FavoritePanel" |
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
6 |
xmlns:local="clr-namespace:KCOM.Controls" |
|
7 |
xmlns:converter="clr-namespace:KCOM.Common.Converter" |
|
8 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
|
9 |
mc:Ignorable="d" Background="#f1f1f1" |
|
10 |
d:DesignHeight="900" d:DesignWidth="600"> |
|
1 |
<UserControl |
|
2 |
x:Class="KCOM.Controls.FavoritePanel" |
|
3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
5 |
xmlns:converter="clr-namespace:KCOM.Common.Converter" |
|
6 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
7 |
xmlns:local="clr-namespace:KCOM.Controls" |
|
8 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
9 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
|
10 |
d:DesignHeight="900" |
|
11 |
d:DesignWidth="600" |
|
12 |
Background="#f1f1f1" |
|
13 |
mc:Ignorable="d"> |
|
11 | 14 |
<UserControl.Resources> |
12 |
<converter:enumStringConverter x:Key="enumStringConverter"/> |
|
13 |
<converter:EnumStringColorConverter x:Key="enumStringColorConverter"/> |
|
15 |
<converter:enumStringConverter x:Key="enumStringConverter" />
|
|
16 |
<converter:EnumStringColorConverter x:Key="enumStringColorConverter" />
|
|
14 | 17 |
</UserControl.Resources> |
15 | 18 |
<Grid> |
16 | 19 |
<Grid.RowDefinitions> |
17 |
<RowDefinition Height="Auto"/> |
|
18 |
<RowDefinition Height="*"/> |
|
20 |
<RowDefinition Height="Auto" />
|
|
21 |
<RowDefinition Height="*" />
|
|
19 | 22 |
</Grid.RowDefinitions> |
20 |
<Border BorderThickness="0,0,0,1" BorderBrush="#e6e6e6" Background="#f5f5f5"> |
|
21 |
<Grid Margin="10"> |
|
23 |
<Border |
|
24 |
Background="#f5f5f5" |
|
25 |
BorderBrush="#e6e6e6" |
|
26 |
BorderThickness="0,0,0,1"> |
|
27 |
<Grid Margin="10"> |
|
22 | 28 |
<Grid.RowDefinitions> |
23 |
<RowDefinition Height="Auto"/> |
|
24 |
<RowDefinition Height="*"/> |
|
25 |
<RowDefinition Height="*"/> |
|
29 |
<RowDefinition Height="Auto" />
|
|
30 |
<RowDefinition Height="*" />
|
|
31 |
<RowDefinition Height="*" />
|
|
26 | 32 |
</Grid.RowDefinitions> |
27 | 33 |
<StackPanel Margin="1" Orientation="Horizontal"> |
28 |
<Image Width="18" Source="/KCOM;component/Resources/Images/MenuImage/tips.png" /> |
|
29 |
<TextBlock Margin="1" |
|
30 |
VerticalAlignment="Center" |
|
31 |
FontWeight="Bold" |
|
32 |
Foreground="#3d3d3d" |
|
33 |
Text="You can use a double click to go to the page!" /> |
|
34 |
<!--Text="Viewing : double Click !! All Markup Favorite items are Read-only" />--> |
|
34 |
<Image Width="18" Source="/KCOM;component/Resources/Images/MenuImage_New/tips.png" /> |
|
35 |
<TextBlock |
|
36 |
Margin="1" |
|
37 |
VerticalAlignment="Center" |
|
38 |
FontWeight="Bold" |
|
39 |
Foreground="#3d3d3d" |
|
40 |
Text="You can use a double click to go to the page!" /> |
|
41 |
<!-- Text="Viewing : double Click !! All Markup Favorite items are Read-only" /> --> |
|
35 | 42 |
|
36 | 43 |
</StackPanel> |
37 |
<Border Grid.Row="1" Margin="0,5" |
|
38 |
BorderBrush="#3d3d3d" |
|
39 |
BorderThickness="0,0,0,0"> |
|
44 |
<Border |
|
45 |
Grid.Row="1" |
|
46 |
Margin="0,5" |
|
47 |
BorderBrush="#3d3d3d" |
|
48 |
BorderThickness="0,0,0,0"> |
|
40 | 49 |
<Grid> |
41 | 50 |
<Grid.ColumnDefinitions> |
42 |
<ColumnDefinition Width="5*"/> |
|
43 |
<ColumnDefinition Width="5*"/> |
|
51 |
<ColumnDefinition Width="5*" />
|
|
52 |
<ColumnDefinition Width="5*" />
|
|
44 | 53 |
</Grid.ColumnDefinitions> |
45 |
<TextBlock Margin="23,5,5,5" HorizontalAlignment="Right" |
|
46 |
VerticalAlignment="Center" |
|
47 |
Text="Search Type :" /> |
|
48 |
<telerik:RadComboBox x:Name="cbState" |
|
49 |
Grid.Column="1" |
|
50 |
HorizontalAlignment="Stretch" |
|
51 |
HorizontalContentAlignment="Center" |
|
52 |
Loaded="cbState_Loaded" |
|
53 |
SelectedIndex="0" |
|
54 |
SelectionChanged="cbState_SelectionChanged" |
|
55 |
telerik:StyleManager.Theme="Office2016" /> |
|
54 |
<TextBlock |
|
55 |
Margin="23,5,5,5" |
|
56 |
HorizontalAlignment="Right" |
|
57 |
VerticalAlignment="Center" |
|
58 |
Text="Search Type :" /> |
|
59 |
<telerik:RadComboBox |
|
60 |
x:Name="cbState" |
|
61 |
Grid.Column="1" |
|
62 |
HorizontalAlignment="Stretch" |
|
63 |
HorizontalContentAlignment="Center" |
|
64 |
telerik:StyleManager.Theme="Office2016" |
|
65 |
Loaded="cbState_Loaded" |
|
66 |
SelectedIndex="0" |
|
67 |
SelectionChanged="cbState_SelectionChanged" /> |
|
56 | 68 |
</Grid> |
57 | 69 |
</Border> |
58 |
<Border Grid.Row="2" Margin="0,5" |
|
59 |
BorderBrush="#3d3d3d" |
|
60 |
BorderThickness="0,0,0,0"> |
|
70 |
<Border |
|
71 |
Grid.Row="2" |
|
72 |
Margin="0,5" |
|
73 |
BorderBrush="#3d3d3d" |
|
74 |
BorderThickness="0,0,0,0"> |
|
61 | 75 |
<Grid> |
62 | 76 |
<Grid.ColumnDefinitions> |
63 |
<ColumnDefinition Width="Auto"/> |
|
64 |
<ColumnDefinition Width="*"/> |
|
77 |
<ColumnDefinition Width="Auto" />
|
|
78 |
<ColumnDefinition Width="*" />
|
|
65 | 79 |
</Grid.ColumnDefinitions> |
66 | 80 |
|
67 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1"> |
|
68 |
<telerik:RadButton Content="ADD" Padding="5" Background="#3d3d3d" Foreground="White" Margin="5,0" MinWidth="60" x:Name="btnFavoriteReg" Click="FavoriteInternel_Save"/> |
|
69 |
<telerik:RadButton Content="EDIT" Padding="5" Background="#3d3d3d" Foreground="White" Margin="5,0" MinWidth="60" x:Name="btnFavoriteEdit" Click="FavoriteInternel_Edit"/> |
|
70 |
<telerik:RadButton Content="DELETE" Padding="5" Background="#3d3d3d" Foreground="White" Margin="5,0,0,0" MinWidth="60" x:Name="btnFavoriteDel" Click="FavoriteInternel_Del"/> |
|
81 |
<StackPanel |
|
82 |
Grid.Column="1" |
|
83 |
HorizontalAlignment="Right" |
|
84 |
Orientation="Horizontal"> |
|
85 |
<telerik:RadButton |
|
86 |
x:Name="btnFavoriteReg" |
|
87 |
MinWidth="60" |
|
88 |
Margin="5,0" |
|
89 |
Padding="5" |
|
90 |
Background="#3d3d3d" |
|
91 |
Click="FavoriteInternel_Save" |
|
92 |
Content="ADD" |
|
93 |
Foreground="White" /> |
|
94 |
<telerik:RadButton |
|
95 |
x:Name="btnFavoriteEdit" |
|
96 |
MinWidth="60" |
|
97 |
Margin="5,0" |
|
98 |
Padding="5" |
|
99 |
Background="#3d3d3d" |
|
100 |
Click="FavoriteInternel_Edit" |
|
101 |
Content="EDIT" |
|
102 |
Foreground="White" /> |
|
103 |
<telerik:RadButton |
|
104 |
x:Name="btnFavoriteDel" |
|
105 |
MinWidth="60" |
|
106 |
Margin="5,0,0,0" |
|
107 |
Padding="5" |
|
108 |
Background="#3d3d3d" |
|
109 |
Click="FavoriteInternel_Del" |
|
110 |
Content="DELETE" |
|
111 |
Foreground="White" /> |
|
71 | 112 |
</StackPanel> |
72 | 113 |
</Grid> |
73 | 114 |
</Border> |
74 | 115 |
</Grid> |
75 | 116 |
</Border> |
76 |
<telerik:RadListBox x:Name="lstFavoriteInternal" BorderThickness="0" FontSize="10" ItemsSource="{Binding FavoriteSet}" Margin="0,0" Grid.Row="1" |
|
77 |
Background="#f1f1f1" ScrollViewer.VerticalScrollBarVisibility="Visible" VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" |
|
78 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" SelectedIndex="1" telerik:StyleManager.Theme="Office2013"> |
|
117 |
<telerik:RadListBox |
|
118 |
x:Name="lstFavoriteInternal" |
|
119 |
Grid.Row="1" |
|
120 |
Margin="0,0" |
|
121 |
VerticalAlignment="Stretch" |
|
122 |
VerticalContentAlignment="Stretch" |
|
123 |
telerik:StyleManager.Theme="Office2013" |
|
124 |
Background="#f1f1f1" |
|
125 |
BorderThickness="0" |
|
126 |
FontSize="10" |
|
127 |
ItemsSource="{Binding FavoriteSet}" |
|
128 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
129 |
ScrollViewer.VerticalScrollBarVisibility="Visible" |
|
130 |
SelectedIndex="1"> |
|
79 | 131 |
<telerik:RadListBox.Resources> |
80 | 132 |
<Style TargetType="telerik:RadListBoxItem"> |
81 | 133 |
<Setter Property="Template"> |
82 | 134 |
<Setter.Value> |
83 | 135 |
<ControlTemplate TargetType="telerik:RadListBoxItem"> |
84 |
<Border Name="Border" Padding="2" SnapsToDevicePixels="True"> |
|
85 |
<ContentPresenter/> |
|
136 |
<Border |
|
137 |
Name="Border" |
|
138 |
Padding="2" |
|
139 |
SnapsToDevicePixels="True"> |
|
140 |
<ContentPresenter /> |
|
86 | 141 |
</Border> |
87 | 142 |
<ControlTemplate.Triggers> |
88 | 143 |
<Trigger Property="IsSelected" Value="true"> |
89 | 144 |
<!--<Setter TargetName="Border" Property="Background" |
90 | 145 |
Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>--> |
91 |
<Setter TargetName="Border" Property="Background" |
|
92 |
Value="#FFFFFF"/> |
|
93 |
<Setter TargetName="Border" Property="BorderThickness" Value="1"/> |
|
94 |
<Setter TargetName="Border" Property="BorderBrush" Value="#3d3d3d"/> |
|
146 |
<Setter TargetName="Border" Property="Background" Value="#FFFFFF" /> |
|
147 |
<Setter TargetName="Border" Property="BorderThickness" Value="1" /> |
|
148 |
<Setter TargetName="Border" Property="BorderBrush" Value="#3d3d3d" /> |
|
95 | 149 |
</Trigger> |
96 | 150 |
</ControlTemplate.Triggers> |
97 | 151 |
</ControlTemplate> |
... | ... | |
101 | 155 |
</telerik:RadListBox.Resources> |
102 | 156 |
<telerik:RadListBox.ItemTemplate> |
103 | 157 |
<DataTemplate> |
104 |
<Grid MouseLeftButtonDown="lstFavoriteInternal_ItemDoubleClickEvent" Margin="0,5" Background="White"> |
|
158 |
<Grid |
|
159 |
Margin="0,5" |
|
160 |
Background="White" |
|
161 |
MouseLeftButtonDown="lstFavoriteInternal_ItemDoubleClickEvent"> |
|
105 | 162 |
<Grid.RowDefinitions> |
106 |
<RowDefinition Height="30"/> |
|
107 |
<RowDefinition Height="Auto"/> |
|
163 |
<RowDefinition Height="30" />
|
|
164 |
<RowDefinition Height="Auto" />
|
|
108 | 165 |
</Grid.RowDefinitions> |
109 | 166 |
<Border Grid.Row="0" Background="{Binding FLAG, Converter={StaticResource enumStringColorConverter}}"> |
110 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
|
111 |
<TextBlock Text="{Binding FLAG, Converter={StaticResource enumStringConverter}}" Foreground="White" FontWeight="Bold" VerticalAlignment="Center" |
|
112 |
FontSize="12"/> |
|
167 |
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> |
|
168 |
<TextBlock |
|
169 |
VerticalAlignment="Center" |
|
170 |
FontSize="12" |
|
171 |
FontWeight="Bold" |
|
172 |
Foreground="White" |
|
173 |
Text="{Binding FLAG, Converter={StaticResource enumStringConverter}}" /> |
|
113 | 174 |
<!--<TextBlock Text=" / " Foreground="White" FontWeight="Bold" VerticalAlignment="Center" FontSize="12"/> |
114 | 175 |
<TextBlock Text="{Binding PAGE_NO, StringFormat={}{0} Page}" Foreground="White" FontWeight="Bold" VerticalAlignment="Center" FontSize="12"/>--> |
115 | 176 |
</StackPanel> |
... | ... | |
117 | 178 |
|
118 | 179 |
<Grid Grid.Row="1" Margin="5"> |
119 | 180 |
<Grid.RowDefinitions> |
120 |
<RowDefinition/> |
|
121 |
<RowDefinition/> |
|
122 |
<RowDefinition/> |
|
123 |
<RowDefinition/> |
|
181 |
<RowDefinition />
|
|
182 |
<RowDefinition />
|
|
183 |
<RowDefinition />
|
|
184 |
<RowDefinition />
|
|
124 | 185 |
</Grid.RowDefinitions> |
125 | 186 |
<StackPanel Orientation="Horizontal"> |
126 | 187 |
<!--<TextBlock Text="Doc No : " FontWeight="SemiBold" FontSize="12"/> |
... | ... | |
128 | 189 |
</StackPanel> |
129 | 190 |
<Grid Grid.Row="1" Margin="2,5"> |
130 | 191 |
<Grid.ColumnDefinitions> |
131 |
<ColumnDefinition/> |
|
132 |
<ColumnDefinition/> |
|
133 |
<ColumnDefinition/> |
|
134 |
<ColumnDefinition/> |
|
192 |
<ColumnDefinition />
|
|
193 |
<ColumnDefinition />
|
|
194 |
<ColumnDefinition />
|
|
195 |
<ColumnDefinition />
|
|
135 | 196 |
</Grid.ColumnDefinitions> |
136 |
<TextBlock Text="Page No : " FontWeight="SemiBold" Grid.Column="0" FontSize="12"/> |
|
137 |
<TextBlock Text="{Binding PAGE_NO}" Margin="5,0" Grid.Column="1" FontSize="12" /> |
|
138 |
<TextBlock Text="Rev No : " FontWeight="SemiBold" Grid.Column="2" FontSize="12"/> |
|
139 |
<TextBlock Text="{Binding REVISION}" Margin="5,0" Grid.Column="3" FontSize="12"/> |
|
197 |
<TextBlock |
|
198 |
Grid.Column="0" |
|
199 |
FontSize="12" |
|
200 |
FontWeight="SemiBold" |
|
201 |
Text="Page No : " /> |
|
202 |
<TextBlock |
|
203 |
Grid.Column="1" |
|
204 |
Margin="5,0" |
|
205 |
FontSize="12" |
|
206 |
Text="{Binding PAGE_NO}" /> |
|
207 |
<TextBlock |
|
208 |
Grid.Column="2" |
|
209 |
FontSize="12" |
|
210 |
FontWeight="SemiBold" |
|
211 |
Text="Rev No : " /> |
|
212 |
<TextBlock |
|
213 |
Grid.Column="3" |
|
214 |
Margin="5,0" |
|
215 |
FontSize="12" |
|
216 |
Text="{Binding REVISION}" /> |
|
140 | 217 |
</Grid> |
141 |
<StackPanel Orientation="Horizontal" Grid.Row="2" Margin="2,5"> |
|
142 |
<TextBlock Text="Description : " FontWeight="SemiBold" FontSize="12"/> |
|
218 |
<StackPanel |
|
219 |
Grid.Row="2" |
|
220 |
Margin="2,5" |
|
221 |
Orientation="Horizontal"> |
|
222 |
<TextBlock |
|
223 |
FontSize="12" |
|
224 |
FontWeight="SemiBold" |
|
225 |
Text="Description : " /> |
|
143 | 226 |
</StackPanel> |
144 |
<TextBox Text="{Binding DESCRIPTION}" Margin="2,5" FontSize="12" Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
145 |
TextWrapping="WrapWithOverflow" BorderThickness="0" Background="Transparent" Foreground="Black" IsHitTestVisible="False"/> |
|
227 |
<TextBox |
|
228 |
Grid.Row="3" |
|
229 |
Margin="2,5" |
|
230 |
Background="Transparent" |
|
231 |
BorderThickness="0" |
|
232 |
FontSize="12" |
|
233 |
Foreground="Black" |
|
234 |
IsHitTestVisible="False" |
|
235 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
236 |
Text="{Binding DESCRIPTION}" |
|
237 |
TextWrapping="WrapWithOverflow" /> |
|
146 | 238 |
</Grid> |
147 | 239 |
</Grid> |
148 | 240 |
<!--<Grid MouseLeftButtonDown="lstFavoriteInternal_ItemDoubleClickEvent" Margin="0,5"> |
... | ... | |
222 | 314 |
VerticalAlignment="Center" |
223 | 315 |
Foreground="#0094FF" |
224 | 316 |
Text="CreateTime" /> |
225 |
-->
|
|
317 |
--> |
|
226 | 318 |
<!-- |
227 | 319 |
<TextBlock Grid.Row="2" |
228 | 320 |
VerticalAlignment="Center" |
229 | 321 |
Foreground="#0094FF" |
230 | 322 |
Text="REV" /> |
231 |
-->
|
|
323 |
--> |
|
232 | 324 |
<!-- |
233 | 325 |
|
234 | 326 |
<TextBox Grid.Column="1" |
... | ... | |
245 | 337 |
VerticalAlignment="Center" |
246 | 338 |
Foreground="#3d3d3d" |
247 | 339 |
Text="{Binding CREATE_TIME}" /> |
248 |
-->
|
|
340 |
--> |
|
249 | 341 |
<!-- |
250 | 342 |
<TextBlock Grid.Row="2" |
251 | 343 |
Grid.Column="1" |
... | ... | |
254 | 346 |
VerticalAlignment="Center" |
255 | 347 |
Foreground="#3d3d3d" |
256 | 348 |
Text="{Binding RevNo}" /> |
257 |
-->
|
|
349 |
--> |
|
258 | 350 |
<!-- |
259 | 351 |
|
260 | 352 |
<Border Grid.Row="2" Grid.ColumnSpan="2"> |
내보내기 Unified diff