markus / KCOM / Controls / PrintControl.xaml @ a1cc6e1f
이력 | 보기 | 이력해설 | 다운로드 (36.9 KB)
1 | 2b1f30fe | taeseongkim | <UserControl
|
---|---|---|---|
2 | x:Class="KCOM.Control.PrintControl" |
||
3 | 787a4489 | KangIngu | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
5 | 2b1f30fe | taeseongkim | xmlns:converter="clr-namespace:KCOM.Common.Converter" |
6 | 787a4489 | KangIngu | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
8 | xmlns:telInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" |
||
9 | xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
||
10 | xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" |
||
11 | 2b1f30fe | taeseongkim | xmlns:wrappanel="clr-namespace:KCOM.WrapPanel" |
12 | d:DesignHeight="550" |
||
13 | d:DesignWidth="650" |
||
14 | mc:Ignorable="d"> |
||
15 | |||
16 | 787a4489 | KangIngu | <UserControl.Resources>
|
17 | e6c46927 | taeseongkim | <converter:AvoidStringConverter x:Key="AvoidStringConverter" /> |
18 | |||
19 | <converter:TeamConsolidateStringConverter x:Key="TeamConsoliStringConverter" /> |
||
20 | 86bff326 | taeseongkim | <converter:BoolToVisibleConverter x:Key="BoolToVisibleConverter" /> |
21 | e6c46927 | taeseongkim | <converter:ConsolidationStringConverter x:Key="ConsoliStringConverter" /> |
22 | 2b1f30fe | taeseongkim | <Style x:Key="GridViewCellCenterStyle" TargetType="telerik:GridViewCell"> |
23 | <Setter Property="HorizontalAlignment" Value="Center" /> |
||
24 | 787a4489 | KangIngu | </Style>
|
25 | 2b1f30fe | taeseongkim | <!-- 좌측 썸네일 스크롤 스타일 -->
|
26 | 787a4489 | KangIngu | <Style x:Key="CustomThumbStyle" TargetType="Thumb"> |
27 | <Setter Property="Template"> |
||
28 | <Setter.Value>
|
||
29 | <ControlTemplate TargetType="Thumb"> |
||
30 | 2b1f30fe | taeseongkim | <Rectangle
|
31 | Width="10" |
||
32 | Height="20" |
||
33 | Fill="#FF45BAFF" /> |
||
34 | 787a4489 | KangIngu | <!--<Rectangle Width="10" Height="20" Fill="#FFFF0000"/>-->
|
35 | </ControlTemplate>
|
||
36 | </Setter.Value>
|
||
37 | </Setter>
|
||
38 | </Style>
|
||
39 | 2b1f30fe | taeseongkim | <!-- 강인구 -->
|
40 | 787a4489 | KangIngu | |
41 | </UserControl.Resources>
|
||
42 | <Grid x:Name="LayoutRoot" Background="White"> |
||
43 | <Grid.ColumnDefinitions>
|
||
44 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="4*" /> |
45 | <ColumnDefinition Width="6*" /> |
||
46 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
47 | <Grid.RowDefinitions>
|
||
48 | 2b1f30fe | taeseongkim | <RowDefinition Height="Auto" /> |
49 | <RowDefinition Height="8*" /> |
||
50 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
51 | |||
52 | 2b1f30fe | taeseongkim | <Border
|
53 | Grid.Row="0" |
||
54 | Grid.ColumnSpan="2" |
||
55 | BorderBrush="#232323" |
||
56 | BorderThickness="0,0,0,0.5"> |
||
57 | <!-- 오른쪽 상단 -->
|
||
58 | <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
||
59 | <StackPanel Margin="3" Orientation="Horizontal"> |
||
60 | <TextBlock
|
||
61 | Margin="3" |
||
62 | VerticalAlignment="Center" |
||
63 | Text="Slip" /> |
||
64 | <TextBlock
|
||
65 | Margin="3" |
||
66 | VerticalAlignment="Center" |
||
67 | FontWeight="ExtraBold" |
||
68 | Foreground="#007ACC" |
||
69 | Text="{Binding vpSlip}" /> |
||
70 | 787a4489 | KangIngu | </StackPanel>
|
71 | 2b1f30fe | taeseongkim | <StackPanel Margin="3" Orientation="Horizontal"> |
72 | <TextBlock
|
||
73 | Margin="3" |
||
74 | VerticalAlignment="Center" |
||
75 | Text="VP" /> |
||
76 | <TextBlock
|
||
77 | Margin="3" |
||
78 | VerticalAlignment="Center" |
||
79 | FontWeight="ExtraBold" |
||
80 | Foreground="#007ACC" |
||
81 | Text="{Binding vpTitle}" /> |
||
82 | 787a4489 | KangIngu | </StackPanel>
|
83 | 2b1f30fe | taeseongkim | <StackPanel Margin="3" Orientation="Horizontal"> |
84 | <TextBlock
|
||
85 | Margin="3" |
||
86 | VerticalAlignment="Center" |
||
87 | Text="Pages" /> |
||
88 | <TextBlock
|
||
89 | Margin="3" |
||
90 | VerticalAlignment="Center" |
||
91 | FontWeight="ExtraBold" |
||
92 | Foreground="#007ACC" |
||
93 | Text="{Binding PagesCount}" /> |
||
94 | 787a4489 | KangIngu | </StackPanel>
|
95 | </StackPanel>
|
||
96 | </Border>
|
||
97 | |||
98 | 2b1f30fe | taeseongkim | <Border
|
99 | Grid.Row="1" |
||
100 | Grid.Column="0" |
||
101 | BorderBrush="#232323" |
||
102 | BorderThickness="0,0,0,0"> |
||
103 | <telerik:GroupBox
|
||
104 | Margin="3" |
||
105 | telerik:StyleManager.Theme="Office2016" |
||
106 | Header="Preview : Composite"> |
||
107 | 787a4489 | KangIngu | <Grid>
|
108 | <Grid.RowDefinitions>
|
||
109 | 2b1f30fe | taeseongkim | <RowDefinition Height="30" /> |
110 | <RowDefinition Height="*" /> |
||
111 | <RowDefinition Height="30" /> |
||
112 | <RowDefinition Height="50" /> |
||
113 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
114 | <!--<Border Grid.Row="1" Background="#5F5F5F" MinWidth="200">-->
|
||
115 | 2b1f30fe | taeseongkim | <Border
|
116 | Grid.Row="1" |
||
117 | MinWidth="200" |
||
118 | Background="#5F5F5F"> |
||
119 | <!-- 잠시 제외 뷰어 부분 -->
|
||
120 | 53deabaf | taeseongkim | <Viewbox x:Name="PrintView"> |
121 | 787a4489 | KangIngu | <!--<Canvas x:Name="printCanvas" Background="{Binding Source={x:Static local:DataModel.Instance}, Path=BackgroundImage, Mode=OneWay}">-->
|
122 | <!--<Canvas x:Name="printCanvas" Background="{Binding Path=Back_Image}">-->
|
||
123 | 2b1f30fe | taeseongkim | <Canvas x:Name="printCanvas" /> |
124 | 787a4489 | KangIngu | </Viewbox>
|
125 | </Border>
|
||
126 | 2b1f30fe | taeseongkim | <telerik:RadBusyIndicator
|
127 | Name="indicator" |
||
128 | Grid.Row="1" |
||
129 | telerik:StyleManager.Theme="Office2016" |
||
130 | IsIndeterminate="True" /> |
||
131 | 787a4489 | KangIngu | <Border Grid.Row="3"> |
132 | <Grid>
|
||
133 | <Grid.ColumnDefinitions>
|
||
134 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="6*" /> |
135 | <ColumnDefinition Width="4*" /> |
||
136 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
137 | 2b1f30fe | taeseongkim | <telerik:RadSlider
|
138 | x:Name="sliderPages" |
||
139 | Margin="5" |
||
140 | HorizontalAlignment="Stretch" |
||
141 | VerticalAlignment="Center" |
||
142 | telerik:StyleManager.Theme="Office2016" |
||
143 | Cursor="Hand" |
||
144 | DragCompleted="sliderPages_DragCompleted" |
||
145 | DragStarted="sliderPages_DragStarted" |
||
146 | HandlesVisibility="Visible" |
||
147 | IsMoveToPointEnabled="True" |
||
148 | IsSnapToTickEnabled="True" |
||
149 | Maximum="{Binding Path=PagesCount}" |
||
150 | MiddleThumbClickMode="None" |
||
151 | Minimum="1" |
||
152 | SmallChange="1" |
||
153 | ThumbStyle="{StaticResource CustomThumbStyle}" |
||
154 | TickFrequency="1" |
||
155 | ValueChanged="sliderPages_ValueChanged" |
||
156 | Value="{Binding Path=CurrentValue}" /> |
||
157 | <TextBlock
|
||
158 | Grid.Column="1" |
||
159 | Margin="4" |
||
160 | VerticalAlignment="Center" |
||
161 | Text="{Binding Value, StringFormat='Page No:{0}', ElementName=sliderPages}" /> |
||
162 | 787a4489 | KangIngu | </Grid>
|
163 | </Border>
|
||
164 | |||
165 | <Border Grid.Row="2"> |
||
166 | <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">-->
|
||
167 | <Grid>
|
||
168 | <Grid.ColumnDefinitions>
|
||
169 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="6*" /> |
170 | <ColumnDefinition Width="4*" /> |
||
171 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
172 | |||
173 | 2b1f30fe | taeseongkim | <ProgressBar
|
174 | Name="ProgressState" |
||
175 | Margin="3" |
||
176 | telerik:StyleManager.Theme="Office2016" /> |
||
177 | 787a4489 | KangIngu | </Grid>
|
178 | </Border>
|
||
179 | 2b1f30fe | taeseongkim | <TextBlock
|
180 | x:Name="testMsg" |
||
181 | Grid.Row="1" |
||
182 | Height="23" |
||
183 | Margin="100,164,0,0" |
||
184 | HorizontalAlignment="Left" |
||
185 | VerticalAlignment="Top" |
||
186 | Foreground="Red" /> |
||
187 | 787a4489 | KangIngu | </Grid>
|
188 | </telerik:GroupBox>
|
||
189 | </Border>
|
||
190 | |||
191 | 2b1f30fe | taeseongkim | <Border
|
192 | Grid.Row="1" |
||
193 | Grid.Column="1" |
||
194 | BorderBrush="#232323" |
||
195 | BorderThickness="0,0,0,0"> |
||
196 | 787a4489 | KangIngu | <Grid>
|
197 | <Grid.RowDefinitions>
|
||
198 | 2b1f30fe | taeseongkim | <RowDefinition Height="100" /> |
199 | <RowDefinition Height="60" /> |
||
200 | <RowDefinition Height="80" /> |
||
201 | <RowDefinition Height="80" /> |
||
202 | <RowDefinition Height="7*" /> |
||
203 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
204 | |||
205 | 2b1f30fe | taeseongkim | <telerik:GroupBox
|
206 | Margin="3" |
||
207 | telerik:StyleManager.Theme="Office2016" |
||
208 | Header="Print Option"> |
||
209 | 787a4489 | KangIngu | <Grid>
|
210 | <Grid.RowDefinitions>
|
||
211 | <RowDefinition Height="Auto" /> |
||
212 | 2b1f30fe | taeseongkim | <RowDefinition Height="Auto" MinHeight="50" /> |
213 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
214 | <!--<StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal">
|
||
215 | <telerik:RadRadioButton Content="Current page" telerik:StyleManager.Theme="Office2016" Margin="2"/>
|
||
216 | <telerik:RadRadioButton Content="Range of print" telerik:StyleManager.Theme="Office2016" Margin="2"/>
|
||
217 | <telerik:RadRadioButton Content="User defined" telerik:StyleManager.Theme="Office2016" Margin="2"/>
|
||
218 | <telerik:RadRadioButton Content="All pages" telerik:StyleManager.Theme="Office2016" Margin="2"/>
|
||
219 | </StackPanel>-->
|
||
220 | 2b1f30fe | taeseongkim | <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
221 | <CheckBox
|
||
222 | x:Name="chkOnlyRedColor" |
||
223 | Grid.Row="0" |
||
224 | Margin="0,5,4,0" |
||
225 | HorizontalAlignment="Right" |
||
226 | VerticalAlignment="Center" |
||
227 | telerik:StyleManager.Theme="Office2016" |
||
228 | Checked="chkOnlyRedColor_Checked" |
||
229 | FontSize="10" |
||
230 | FontWeight="Bold" |
||
231 | Foreground="Black" |
||
232 | IsChecked="True" |
||
233 | Unchecked="chkOnlyRedColor_Checked"> |
||
234 | <CheckBox.Content>
|
||
235 | <TextBlock
|
||
236 | Margin="0,-2,0,0" |
||
237 | FontSize="12" |
||
238 | Text="Only Red Color" /> |
||
239 | </CheckBox.Content>
|
||
240 | </CheckBox>
|
||
241 | <CheckBox
|
||
242 | x:Name="chkOnlyMarkup" |
||
243 | Grid.Row="0" |
||
244 | Margin="0,5,4,0" |
||
245 | HorizontalAlignment="Right" |
||
246 | VerticalAlignment="Center" |
||
247 | telerik:StyleManager.Theme="Office2016" |
||
248 | Checked="chkOnlyMarkup_Checked" |
||
249 | FontSize="10" |
||
250 | FontWeight="Bold" |
||
251 | Foreground="Black" |
||
252 | IsChecked="True" |
||
253 | Unchecked="chkOnlyMarkup_Checked"> |
||
254 | 787a4489 | KangIngu | <CheckBox.Content>
|
255 | 2b1f30fe | taeseongkim | <TextBlock
|
256 | Margin="0,-2,0,0" |
||
257 | FontSize="12" |
||
258 | Text="Commented Page only" /> |
||
259 | 787a4489 | KangIngu | </CheckBox.Content>
|
260 | </CheckBox>
|
||
261 | <!--<CheckBox IsChecked="True" HorizontalAlignment="Right"
|
||
262 | 2b1f30fe | taeseongkim | VerticalAlignment="Center" FontSize="10" FontWeight="Bold" telerik:StyleManager.Theme="Office2016"
|
263 | 787a4489 | KangIngu | Margin="0,5,4,0" Foreground="Black" Grid.Row="0">
|
264 | <CheckBox.Content>
|
||
265 | <TextBlock Text="User Color" Margin="0,-2,0,0" FontSize="12"/>
|
||
266 | </CheckBox.Content>
|
||
267 | </CheckBox>-->
|
||
268 | </StackPanel>
|
||
269 | |||
270 | 2b1f30fe | taeseongkim | <StackPanel Grid.Row="1" Orientation="Horizontal"> |
271 | <telerik:RadRadioButton
|
||
272 | Name="btCurrentPages" |
||
273 | Grid.Row="1" |
||
274 | Margin="5" |
||
275 | telerik:StyleManager.Theme="Office2016" |
||
276 | Checked="PageSelect_Checked" |
||
277 | Content="Current" |
||
278 | IsChecked="True" |
||
279 | Tag="Current" /> |
||
280 | <telerik:RadRadioButton
|
||
281 | Name="btRagePages" |
||
282 | Grid.Row="1" |
||
283 | Grid.Column="1" |
||
284 | Margin="5" |
||
285 | telerik:StyleManager.Theme="Office2016" |
||
286 | Checked="PageSelect_Checked" |
||
287 | Content="Range of Print" |
||
288 | Tag="RangePrint" /> |
||
289 | <telerik:RadRadioButton
|
||
290 | Grid.Row="1" |
||
291 | Grid.Column="2" |
||
292 | Margin="5" |
||
293 | telerik:StyleManager.Theme="Office2016" |
||
294 | Checked="PageSelect_Checked" |
||
295 | Content="User defined" |
||
296 | Tag="UserDefined" /> |
||
297 | <telerik:RadRadioButton
|
||
298 | Grid.Row="1" |
||
299 | Grid.Column="3" |
||
300 | Margin="5" |
||
301 | telerik:StyleManager.Theme="Office2016" |
||
302 | Checked="PageSelect_Checked" |
||
303 | Content="All Pages" |
||
304 | Tag="AllPrint" /> |
||
305 | 787a4489 | KangIngu | </StackPanel>
|
306 | |||
307 | </Grid>
|
||
308 | </telerik:GroupBox>
|
||
309 | 2b1f30fe | taeseongkim | <!-- 프린트 범위 -->
|
310 | <telerik:GroupBox
|
||
311 | x:Name="Selected_Print" |
||
312 | Grid.Row="1" |
||
313 | Margin="3" |
||
314 | telerik:StyleManager.Theme="Office2016" |
||
315 | Header="Selected Print"> |
||
316 | 787a4489 | KangIngu | <Grid>
|
317 | 2b1f30fe | taeseongkim | <telerik:RadComboBox
|
318 | x:Name="cbPrint" |
||
319 | Width="300" |
||
320 | HorizontalAlignment="Left" |
||
321 | telerik:StyleManager.Theme="Office2016" /> |
||
322 | 787a4489 | KangIngu | </Grid>
|
323 | </telerik:GroupBox>
|
||
324 | |||
325 | 2b1f30fe | taeseongkim | <telerik:GroupBox
|
326 | Grid.Row="2" |
||
327 | Margin="3" |
||
328 | telerik:StyleManager.Theme="Office2016" |
||
329 | Header="Print Range"> |
||
330 | 787a4489 | KangIngu | <Grid x:Name="rangeView"> |
331 | 2b1f30fe | taeseongkim | <!-- Current Grid Start -->
|
332 | <Grid
|
||
333 | Name="GridCurrentPage" |
||
334 | Margin="0,0,0,0" |
||
335 | HorizontalAlignment="Center" |
||
336 | VerticalAlignment="Center" |
||
337 | Visibility="Visible"> |
||
338 | 787a4489 | KangIngu | <StackPanel>
|
339 | 2b1f30fe | taeseongkim | <TextBlock Text="Print out the page currently displayed on the screen !" /> |
340 | <StackPanel
|
||
341 | Margin="5" |
||
342 | HorizontalAlignment="Center" |
||
343 | Orientation="Horizontal"> |
||
344 | <TextBlock Text="Current Page : " /> |
||
345 | <TextBlock
|
||
346 | FontWeight="Bold" |
||
347 | Foreground="#FF45BAFF" |
||
348 | Text="{Binding Value, StringFormat=' {0}', ElementName=sliderPages}" /> |
||
349 | 787a4489 | KangIngu | </StackPanel>
|
350 | </StackPanel>
|
||
351 | </Grid>
|
||
352 | 2b1f30fe | taeseongkim | <!-- Current Grid End -->
|
353 | <!-- Range of Print Start -->
|
||
354 | <Grid
|
||
355 | Name="GridRangePages" |
||
356 | Margin="0,0,0,0" |
||
357 | HorizontalAlignment="Center" |
||
358 | VerticalAlignment="Center" |
||
359 | Visibility="Collapsed"> |
||
360 | 787a4489 | KangIngu | <Grid.ColumnDefinitions>
|
361 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="Auto" /> |
362 | <ColumnDefinition /> |
||
363 | <ColumnDefinition /> |
||
364 | <ColumnDefinition /> |
||
365 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
366 | 2b1f30fe | taeseongkim | <TextBlock VerticalAlignment="Center" Text="Select Page Number : " /> |
367 | <telInput:RadNumericUpDown
|
||
368 | Name="stPageNo" |
||
369 | Grid.Column="1" |
||
370 | telerik:StyleManager.Theme="Office2016" |
||
371 | Minimum="1" |
||
372 | NumberDecimalDigits="0" |
||
373 | ValueChanged="PageNo_ValueChanged" /> |
||
374 | <TextBlock
|
||
375 | Grid.Column="2" |
||
376 | VerticalAlignment="Center" |
||
377 | Text="~" /> |
||
378 | <telInput:RadNumericUpDown
|
||
379 | Name="edPageNo" |
||
380 | Grid.Column="3" |
||
381 | telerik:StyleManager.Theme="Office2016" |
||
382 | Minimum="1" |
||
383 | NumberDecimalDigits="0" |
||
384 | ValueChanged="PageNo_ValueChanged" /> |
||
385 | 787a4489 | KangIngu | </Grid>
|
386 | 2b1f30fe | taeseongkim | <!-- Range of Print End -->
|
387 | <!-- User defined Start -->
|
||
388 | <Grid
|
||
389 | Name="GridDefinePages" |
||
390 | Margin="0,0,0,0" |
||
391 | HorizontalAlignment="Stretch" |
||
392 | VerticalAlignment="Center" |
||
393 | Visibility="Collapsed"> |
||
394 | 787a4489 | KangIngu | <Border>
|
395 | <Grid>
|
||
396 | <Grid.ColumnDefinitions>
|
||
397 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="Auto" /> |
398 | <ColumnDefinition Width="3*" /> |
||
399 | <ColumnDefinition Width="2*" /> |
||
400 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
401 | <Grid.RowDefinitions>
|
||
402 | 2b1f30fe | taeseongkim | <RowDefinition Height="Auto" /> |
403 | <RowDefinition Height="Auto" /> |
||
404 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
405 | 2b1f30fe | taeseongkim | <TextBlock
|
406 | Margin="10,0" |
||
407 | VerticalAlignment="Center" |
||
408 | Text="Input Page Number" /> |
||
409 | <TextBox
|
||
410 | Name="txtDefinedPages" |
||
411 | Grid.Column="1" |
||
412 | Margin="2" |
||
413 | Text="{Binding Path=DefinedPagesStrings, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" |
||
414 | TextChanged="txtDefinedPages_TextChanged" /> |
||
415 | <telerik:RadButton
|
||
416 | x:Name="btnClearDefinedPages" |
||
417 | Grid.Column="2" |
||
418 | Margin="2" |
||
419 | telerik:StyleManager.Theme="Office2016" |
||
420 | Click="btnClearDefinedPages_Click" |
||
421 | Content="Clear" /> |
||
422 | <TextBlock
|
||
423 | Grid.Row="1" |
||
424 | Grid.ColumnSpan="3" |
||
425 | Margin="5,5" |
||
426 | HorizontalAlignment="Center"> |
||
427 | 787a4489 | KangIngu | <TextBlock.Inlines>
|
428 | <Run>Enter page numbers and / or page ranges</Run> |
||
429 | 2b1f30fe | taeseongkim | <LineBreak /> |
430 | 787a4489 | KangIngu | <Run>separated by commas</Run> |
431 | <Underline>
|
||
432 | 2b1f30fe | taeseongkim | <Run FontSize="11" Foreground="Red">[For example, 1,3,5-12]</Run> |
433 | 787a4489 | KangIngu | </Underline>
|
434 | </TextBlock.Inlines>
|
||
435 | </TextBlock>
|
||
436 | </Grid>
|
||
437 | </Border>
|
||
438 | </Grid>
|
||
439 | 2b1f30fe | taeseongkim | <!-- User defined Start -->
|
440 | <!-- All Pages Start -->
|
||
441 | <Grid
|
||
442 | Name="GridAllPages" |
||
443 | Grid.Row="2" |
||
444 | Margin="0,0,0,0" |
||
445 | HorizontalAlignment="Center" |
||
446 | VerticalAlignment="Center" |
||
447 | Visibility="Collapsed"> |
||
448 | 787a4489 | KangIngu | <StackPanel>
|
449 | 2b1f30fe | taeseongkim | <TextBlock
|
450 | Text="Indicates all of the pages in the current document are to be printed." |
||
451 | TextAlignment="Center" |
||
452 | TextWrapping="Wrap" /> |
||
453 | <StackPanel
|
||
454 | Margin="3" |
||
455 | HorizontalAlignment="Center" |
||
456 | Orientation="Horizontal"> |
||
457 | <TextBlock Foreground="#FF006AC1" Text="Document Pages : " /> |
||
458 | <TextBlock
|
||
459 | FontWeight="Bold" |
||
460 | Foreground="#FF45BAFF" |
||
461 | Text="{Binding Path=PagesCount}" /> |
||
462 | 787a4489 | KangIngu | </StackPanel>
|
463 | </StackPanel>
|
||
464 | </Grid>
|
||
465 | 2b1f30fe | taeseongkim | <!-- All Pages End -->
|
466 | 787a4489 | KangIngu | </Grid>
|
467 | </telerik:GroupBox>
|
||
468 | 2b1f30fe | taeseongkim | <!-- 프린트 범위 -->
|
469 | 787a4489 | KangIngu | |
470 | 2b1f30fe | taeseongkim | <telerik:GroupBox
|
471 | Grid.Row="3" |
||
472 | Margin="3" |
||
473 | telerik:StyleManager.Theme="Office2016" |
||
474 | Header="Commented Pages(Click To Select Page)"> |
||
475 | <ListBox
|
||
476 | x:Name="CommentPageList" |
||
477 | telerik:StyleManager.Theme="Office2016" |
||
478 | Foreground="Black" |
||
479 | ScrollViewer.HorizontalScrollBarVisibility="Auto" |
||
480 | SelectionChanged="CommentPageList_SelectionChanged"> |
||
481 | 787a4489 | KangIngu | <ListBox.ItemsPanel>
|
482 | <ItemsPanelTemplate>
|
||
483 | 2b1f30fe | taeseongkim | <wrappanel:WrapPanel VerticalAlignment="Center" Orientation="Horizontal" /> |
484 | 787a4489 | KangIngu | </ItemsPanelTemplate>
|
485 | </ListBox.ItemsPanel>
|
||
486 | <ListBox.ItemTemplate>
|
||
487 | <DataTemplate>
|
||
488 | 2b1f30fe | taeseongkim | <Border
|
489 | Width="20" |
||
490 | Height="20" |
||
491 | Background="#FF45BA44" |
||
492 | BorderBrush="#232323" |
||
493 | BorderThickness="0.5"> |
||
494 | <TextBlock
|
||
495 | Margin="2" |
||
496 | HorizontalAlignment="Center" |
||
497 | VerticalAlignment="Center" |
||
498 | Foreground="White" |
||
499 | Text="{Binding PageNumber}" /> |
||
500 | 787a4489 | KangIngu | </Border>
|
501 | </DataTemplate>
|
||
502 | </ListBox.ItemTemplate>
|
||
503 | </ListBox>
|
||
504 | </telerik:GroupBox>
|
||
505 | |||
506 | <Border Grid.Row="4" Margin="3"> |
||
507 | <Grid>
|
||
508 | <Grid.RowDefinitions>
|
||
509 | 2b1f30fe | taeseongkim | <RowDefinition Height="8.5*" /> |
510 | <RowDefinition Height="1.5*" /> |
||
511 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
512 | 2b1f30fe | taeseongkim | <telerik:GroupBox
|
513 | Grid.Row="0" |
||
514 | Margin="0" |
||
515 | telerik:StyleManager.Theme="Office2016" |
||
516 | Header="Commented User list"> |
||
517 | <telerik:RadGridView
|
||
518 | x:Name="gridViewMarkup" |
||
519 | Grid.Row="0" |
||
520 | Margin="2" |
||
521 | telerik:StyleManager.Theme="Office2016" |
||
522 | AutoGenerateColumns="False" |
||
523 | Background="White" |
||
524 | BorderBrush="#232323" |
||
525 | BorderThickness="0.5" |
||
526 | CanUserDeleteRows="True" |
||
527 | CanUserInsertRows="False" |
||
528 | EditTriggers="TextInput" |
||
529 | IsBusy="False" |
||
530 | IsFilteringAllowed="False" |
||
531 | RowIndicatorVisibility="Collapsed" |
||
532 | ScrollViewer.VerticalScrollBarVisibility="Auto" |
||
533 | SelectionChanged="gridViewMarkup_SelectionChanged" |
||
534 | SelectionMode="Multiple" |
||
535 | SelectionUnit="FullRow" |
||
536 | ShowGroupFooters="False" |
||
537 | ShowGroupPanel="False"> |
||
538 | 787a4489 | KangIngu | <telerik:RadGridView.Columns>
|
539 | <telerik:GridViewSelectColumn /> |
||
540 | 2b1f30fe | taeseongkim | <telerik:GridViewDataColumn Header="Color" IsReadOnly="True"> |
541 | 787a4489 | KangIngu | <telerik:GridViewDataColumn.CellTemplate>
|
542 | <DataTemplate>
|
||
543 | <Grid Background="AliceBlue"> |
||
544 | 3abe8d4e | taeseongkim | <!--<Rectangle Fill="{Binding DisplayColor, Converter={StaticResource StringToColorBrushConverter}}" />-->
|
545 | 787a4489 | KangIngu | <Rectangle Fill="{Binding DisplayColor}" /> |
546 | 2b1f30fe | taeseongkim | <TextBlock Foreground="#00000000" Text="Color" /> |
547 | 787a4489 | KangIngu | </Grid>
|
548 | </DataTemplate>
|
||
549 | </telerik:GridViewDataColumn.CellTemplate>
|
||
550 | </telerik:GridViewDataColumn>
|
||
551 | |||
552 | 2b1f30fe | taeseongkim | <telerik:GridViewDataColumn
|
553 | Width="1*" |
||
554 | DataMemberBinding="{Binding Depatment}" |
||
555 | Header="Department" |
||
556 | IsReadOnly="True" /> |
||
557 | <telerik:GridViewDataColumn
|
||
558 | Width="1*" |
||
559 | DataMemberBinding="{Binding UserName}" |
||
560 | Header="User Name" |
||
561 | IsReadOnly="True" /> |
||
562 | e6c46927 | taeseongkim | <!--<telerik:GridViewDataColumn
|
563 | 2b1f30fe | taeseongkim | Width="0.5*"
|
564 | DataMemberBinding="{Binding PageCount}"
|
||
565 | Header="Pages"
|
||
566 | e6c46927 | taeseongkim | IsReadOnly="True" />-->
|
567 | 2b1f30fe | taeseongkim | <telerik:GridViewDataColumn
|
568 | e6c46927 | taeseongkim | Width="Auto" |
569 | Header="CONSOLIDATION" |
||
570 | IsReadOnly="True"> |
||
571 | <telerik:GridViewDataColumn.CellTemplate>
|
||
572 | <DataTemplate>
|
||
573 | <!--<TextBlock Text="{Binding Consolidate}"/>-->
|
||
574 | <Grid>
|
||
575 | <Grid.ColumnDefinitions>
|
||
576 | <ColumnDefinition Width="Auto" /> |
||
577 | <ColumnDefinition Width="Auto" /> |
||
578 | <ColumnDefinition Width="Auto" /> |
||
579 | </Grid.ColumnDefinitions>
|
||
580 | |||
581 | <TextBlock
|
||
582 | Grid.Column="0" |
||
583 | Foreground="Red" |
||
584 | Text="{Binding AvoidConsolidate, Converter={StaticResource AvoidStringConverter}}" /> |
||
585 | <TextBlock
|
||
586 | Grid.Column="1" |
||
587 | Foreground="Blue" |
||
588 | Text="{Binding PartConsolidate, Converter={StaticResource TeamConsoliStringConverter}}" /> |
||
589 | <TextBlock Grid.Column="2" Text="{Binding Consolidate, Converter={StaticResource ConsoliStringConverter}}" /> |
||
590 | <!--
|
||
591 | <TextBlock HorizontalAlignment="Center" Grid.Column="2">
|
||
592 | <TextBlock.Text>
|
||
593 | <Binding Converter="{StaticResource ConsoliStringConverter}"/>
|
||
594 | </TextBlock.Text>
|
||
595 | </TextBlock>
|
||
596 | -->
|
||
597 | </Grid>
|
||
598 | </DataTemplate>
|
||
599 | </telerik:GridViewDataColumn.CellTemplate>
|
||
600 | </telerik:GridViewDataColumn>
|
||
601 | <!--<telerik:GridViewDataColumn
|
||
602 | 2b1f30fe | taeseongkim | Width="1*"
|
603 | DataMemberBinding="{Binding Description}"
|
||
604 | Header="Descriptions"
|
||
605 | e6c46927 | taeseongkim | IsReadOnly="True" />-->
|
606 | 787a4489 | KangIngu | |
607 | </telerik:RadGridView.Columns>
|
||
608 | </telerik:RadGridView>
|
||
609 | </telerik:GroupBox>
|
||
610 | <Border Grid.Row="1"> |
||
611 | <Grid>
|
||
612 | <Grid.ColumnDefinitions>
|
||
613 | 2b1f30fe | taeseongkim | <ColumnDefinition /> |
614 | <ColumnDefinition /> |
||
615 | <ColumnDefinition /> |
||
616 | <ColumnDefinition /> |
||
617 | <!-- 강인구 추가(Export) -->
|
||
618 | <ColumnDefinition /> |
||
619 | 787a4489 | KangIngu | |
620 | </Grid.ColumnDefinitions>
|
||
621 | 2b1f30fe | taeseongkim | <Border
|
622 | Grid.Row="4" |
||
623 | Grid.Column="0" |
||
624 | Grid.ColumnSpan="2" |
||
625 | Margin="0"> |
||
626 | 787a4489 | KangIngu | <Grid>
|
627 | <Grid.ColumnDefinitions>
|
||
628 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="7*" /> |
629 | <ColumnDefinition Width="3*" /> |
||
630 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
631 | </Grid>
|
||
632 | </Border>
|
||
633 | 2b1f30fe | taeseongkim | <telerik:RadButton
|
634 | x:Name="btnWholePrint" |
||
635 | Grid.Row="4" |
||
636 | Grid.Column="2" |
||
637 | Margin="0" |
||
638 | telerik:StyleManager.Theme="Office2016" |
||
639 | Background="#FF45BAFF" |
||
640 | Click="PrintMethod" |
||
641 | Content="Print" |
||
642 | Foreground="White" /> |
||
643 | <!-- 강인구 추가(Export) -->
|
||
644 | <telerik:RadButton
|
||
645 | x:Name="btnWholeExport" |
||
646 | Grid.Row="4" |
||
647 | Grid.Column="2" |
||
648 | Margin="0" |
||
649 | telerik:StyleManager.Theme="Office2016" |
||
650 | Background="#FF45BAFF" |
||
651 | Click="ExportMethod" |
||
652 | Content="Export" |
||
653 | Foreground="White" |
||
654 | Visibility="Collapsed" /> |
||
655 | 787a4489 | KangIngu | |
656 | 2b1f30fe | taeseongkim | <Border
|
657 | Grid.Row="4" |
||
658 | Grid.Column="0" |
||
659 | Grid.ColumnSpan="2" |
||
660 | Margin="0"> |
||
661 | 787a4489 | KangIngu | <Grid>
|
662 | <Grid.RowDefinitions>
|
||
663 | 2b1f30fe | taeseongkim | <RowDefinition /> |
664 | <RowDefinition /> |
||
665 | 787a4489 | KangIngu | </Grid.RowDefinitions>
|
666 | <Grid.ColumnDefinitions>
|
||
667 | 2b1f30fe | taeseongkim | <ColumnDefinition Width="7*" /> |
668 | <ColumnDefinition Width="3*" /> |
||
669 | 787a4489 | KangIngu | </Grid.ColumnDefinitions>
|
670 | </Grid>
|
||
671 | </Border>
|
||
672 | </Grid>
|
||
673 | </Border>
|
||
674 | </Grid>
|
||
675 | </Border>
|
||
676 | </Grid>
|
||
677 | </Border>
|
||
678 | 2b1f30fe | taeseongkim | <telerik:RadBusyIndicator
|
679 | x:Name="printIndy" |
||
680 | Grid.RowSpan="3" |
||
681 | Grid.ColumnSpan="2" |
||
682 | VerticalAlignment="Stretch" |
||
683 | telerik:StyleManager.Theme="Office2016" |
||
684 | BorderThickness="0" |
||
685 | DisplayAfter="0:0:0.3" |
||
686 | IsBusy="False" |
||
687 | e6c46927 | taeseongkim | Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibleConverter}, RelativeSource={RelativeSource Self}}"> |
688 | <telerik:RadBusyIndicator.OverlayStyle>
|
||
689 | <Style TargetType="Rectangle"> |
||
690 | <Setter Property="Stroke" Value="#FFDA8282" /> |
||
691 | <Setter Property="Fill" Value="#7F252729" /> |
||
692 | </Style>
|
||
693 | </telerik:RadBusyIndicator.OverlayStyle>
|
||
694 | <telerik:RadBusyIndicator.BusyContentTemplate>
|
||
695 | <DataTemplate>
|
||
696 | <StackPanel>
|
||
697 | <TextBlock
|
||
698 | Margin="2" |
||
699 | FontSize="14" |
||
700 | FontWeight="Bold" |
||
701 | Foreground="White" |
||
702 | Text="{Binding BusyContent, Mode=TwoWay}" /> |
||
703 | <Button
|
||
704 | Width="100" |
||
705 | Background="#FF66ACFF" |
||
706 | BorderBrush="#FF0A6295" |
||
707 | Click="btPrintCancel_click" |
||
708 | Content="Cancel" |
||
709 | FontSize="16" |
||
710 | Foreground="White" /> |
||
711 | </StackPanel>
|
||
712 | </DataTemplate>
|
||
713 | </telerik:RadBusyIndicator.BusyContentTemplate>
|
||
714 | </telerik:RadBusyIndicator>
|
||
715 | 787a4489 | KangIngu | </Grid>
|
716 | </UserControl> |