개정판 94b7c12c
issue #000: Document History link 추가, Compare panel update 수정
Change-Id: I399ca61dcb6514e4ed6567a0ae2a92c84d987e1e
KCOM/Views/MainMenu.xaml | ||
---|---|---|
272 | 272 |
</ItemsPanelTemplate> |
273 | 273 |
</ItemsControl.ItemsPanel> |
274 | 274 |
</ItemsControl> |
275 |
<Image |
|
275 |
<Image x:Name="ComparePanel"
|
|
276 | 276 |
Source="{Binding ImageViewPath_C, Source={x:Static common:ViewerDataModel.Instance}}" |
277 | 277 |
Width="{Binding ImageViewWidth_C, Source={x:Static common:ViewerDataModel.Instance}}" |
278 | 278 |
Height="{Binding ImageViewHeight_C, Source={x:Static common:ViewerDataModel.Instance}}" > |
... | ... | |
794 | 794 |
<telerik:GridViewDataColumn Header="Slip No" IsReadOnly="True" Width="Auto"> |
795 | 795 |
<telerik:GridViewDataColumn.CellTemplate> |
796 | 796 |
<DataTemplate> |
797 |
<TextBlock Text="{Binding GroupNo}" HorizontalAlignment="Center"/> |
|
797 |
<telerik:RadButton Content="{Binding GroupNo}" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent"> |
|
798 |
</telerik:RadButton> |
|
798 | 799 |
</DataTemplate> |
799 | 800 |
</telerik:GridViewDataColumn.CellTemplate> |
800 | 801 |
</telerik:GridViewDataColumn> |
... | ... | |
882 | 883 |
</DataTemplate> |
883 | 884 |
</telerik:GridViewDataColumn.CellTemplate> |
884 | 885 |
</telerik:GridViewDataColumn> |
886 |
<telerik:GridViewDataColumn CellStyle="{StaticResource GridViewAlign}" |
|
887 |
DataMemberBinding="{Binding EnsembleLink}" IsReadOnly="True" |
|
888 |
Header="Attachments" telerik:StyleManager.Theme="Office2013" |
|
889 |
HeaderTextAlignment="Center"> |
|
890 |
<telerik:GridViewDataColumn.CellTemplate> |
|
891 |
<DataTemplate> |
|
892 |
<telerik:RadButton Content="Link" Tag="{Binding EnsembleLink}" Margin="5" BorderThickness="0" Click="EnsembleLink_Button_Click" Background="Transparent"> |
|
893 | ||
894 |
</telerik:RadButton> |
|
895 |
</DataTemplate> |
|
896 |
</telerik:GridViewDataColumn.CellTemplate> |
|
897 |
</telerik:GridViewDataColumn> |
|
885 | 898 |
</telerik:RadGridView.Columns> |
886 | 899 |
</telerik:RadGridView> |
887 | 900 |
<telerik:RadBusyIndicator x:Name="gridViewHistory_Busy" IsBusy="False" telerik:StyleManager.Theme="Office2016" |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
678 | 678 |
Logger.sendCheckLog("pageNavigator_PageChanging_defaultBitmapImage_Compare BitmapImage 설정", 1); |
679 | 679 |
var defaultBitmapImage_Compare = new BitmapImage(); |
680 | 680 |
defaultBitmapImage_Compare.BeginInit(); |
681 |
defaultBitmapImage_Compare.CreateOptions = BitmapCreateOptions.IgnoreImageCache; |
|
681 | 682 |
defaultBitmapImage_Compare.CacheOption = BitmapCacheOption.OnLoad; |
682 | 683 |
defaultBitmapImage_Compare.UriSource = new Uri(uri2); |
683 |
defaultBitmapImage_Compare.DecodePixelWidth = Int32.Parse(e.CurrentPage.PAGE_WIDTH); |
|
684 |
defaultBitmapImage_Compare.DecodePixelHeight = Int32.Parse(e.CurrentPage.PAGE_HEIGHT); |
|
684 |
//defaultBitmapImage_Compare.DecodePixelWidth = Int32.Parse(e.CurrentPage.PAGE_WIDTH);
|
|
685 |
//defaultBitmapImage_Compare.DecodePixelHeight = Int32.Parse(e.CurrentPage.PAGE_HEIGHT);
|
|
685 | 686 |
defaultBitmapImage_Compare.EndInit(); |
686 | 687 | |
687 | 688 |
ViewerDataModel.Instance.ImageViewPath_C = null; |
... | ... | |
704 | 705 |
ViewerDataModel.Instance.ImageViewPath_C = defaultBitmapImage_Compare; |
705 | 706 |
ViewerDataModel.Instance.ImageViewWidth_C = defaultBitmapImage_Compare.PixelWidth; |
706 | 707 |
ViewerDataModel.Instance.ImageViewHeight_C = defaultBitmapImage_Compare.PixelHeight; |
708 |
ComparePanel.UpdateLayout(); |
|
707 | 709 |
zoomAndPanCanvas2.Width = defaultBitmapImage_Compare.PixelWidth; |
708 | 710 |
zoomAndPanCanvas2.Height = defaultBitmapImage_Compare.PixelHeight; |
709 | 711 | |
... | ... | |
4374 | 4376 |
Logger.sendReqLog("GetSyncMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + CurrentRev.DOCUMENT_ID + "," + _ViewInfo.UserID, 1); |
4375 | 4377 |
} |
4376 | 4378 |
} |
4379 |
private void EnsembleLink_Button_Click(object sender, RoutedEventArgs e) |
|
4380 |
{ |
|
4381 |
try |
|
4382 |
{ |
|
4383 |
if (sender is RadButton) |
|
4384 |
{ |
|
4385 |
if ((sender as RadButton).Tag != null) |
|
4386 |
{ |
|
4387 |
var url = (sender as RadButton).Tag.ToString(); |
|
4388 |
System.Diagnostics.Process.Start(url); |
|
4389 |
} |
|
4390 |
else |
|
4391 |
{ |
|
4392 |
this.ParentOfType<MainWindow>().DialogMessage_Alert("Link 정보가 잘못 되었습니다", "안내"); |
|
4393 |
} |
|
4394 |
} |
|
4395 |
} |
|
4396 |
catch (Exception ex) |
|
4397 |
{ |
|
4398 |
Logger.sendResLog("EnsembleLink_Button_Click", ex.Message, 0); |
|
4399 |
} |
|
4400 |
} |
|
4377 | 4401 | |
4378 | 4402 |
public void Sync_Event(VPRevision Currnet_Rev) |
4379 | 4403 |
{ |
내보내기 Unified diff