개정판 80458c15
issue #753 Consolidation 기능과 Merge PDF 기능을 한번에 할 수 있는 버튼 추가
KCOM/Views/MainMenu.xaml | ||
---|---|---|
621 | 621 |
</StackPanel> |
622 | 622 |
</Border> |
623 | 623 |
</telerik:RadRibbonButton> |
624 |
<telerik:RadRibbonButton x:Name="btnConsolidateFinalPDF" |
|
625 |
VerticalAlignment="Center" |
|
626 |
Click="ConsolidateFinalPDFEvent" |
|
627 |
Loaded="btnConsolidateFinalPDF_Loaded" |
|
628 |
telerik:StyleManager.Theme="Office2016" |
|
629 |
ToolTipService.ToolTip="Consolidate & FinalPDF"> |
|
630 |
<Border Background="#E9F0F8" |
|
631 |
BorderBrush="#839AB3" |
|
632 |
BorderThickness="1"> |
|
633 |
<StackPanel Margin="1" Orientation="Horizontal"> |
|
634 |
<!--<Image Width="15" Source="/DeepView;component/Images/MenuImage/final_pdf2.png" />--> |
|
635 |
<TextBlock Margin="1" |
|
636 |
VerticalAlignment="Center" |
|
637 |
Foreground="Black" |
|
638 |
Text="Consolidate & Merged PDF" /> |
|
639 |
</StackPanel> |
|
640 |
</Border> |
|
641 |
</telerik:RadRibbonButton> |
|
624 | 642 |
</StackPanel> |
625 | 643 |
<!--<StackPanel Grid.Column="1" |
626 | 644 |
HorizontalAlignment="Right" |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
138 | 138 |
public RadRibbonButton btnConsolidate { get; set; } |
139 | 139 |
public RadRibbonButton btnFinalPDF { get; set; } |
140 | 140 |
public RadRibbonButton btnTeamConsolidate { get; set; } |
141 |
public RadRibbonButton btnConsolidateFinalPDF { get; set; } |
|
142 |
|
|
141 | 143 |
public string Filename_ { get; set; } |
142 | 144 |
public double L_Size = 0; |
143 | 145 |
public AdornerFinal adorner_; |
... | ... | |
4952 | 4954 |
} |
4953 | 4955 |
} |
4954 | 4956 |
|
4957 |
private void ConsolidateFinalPDFEvent(object sender, RoutedEventArgs e) |
|
4958 |
{ |
|
4959 |
ChangeCommentReact(); |
|
4960 |
|
|
4961 |
if (this.gridViewMarkup.SelectedItems.Count == 0) |
|
4962 |
{ |
|
4963 |
this.ParentOfType<MainWindow>().DialogMessage_Alert("Please select at least one user", "Alert"); |
|
4964 |
} |
|
4965 |
else |
|
4966 |
{ |
|
4967 |
ViewerDataModel.Instance.IsConsolidate = true; |
|
4968 |
this.ParentOfType<MainWindow>().dzTopMenu._SaveEvent(null, null); |
|
4969 |
List<KCOMDataModel.DataModel.MARKUP_DATA> instanceDataSet = new List<KCOMDataModel.DataModel.MARKUP_DATA>(); |
|
4970 |
|
|
4971 |
string project_no = App.ViewInfo.ProjectNO; |
|
4972 |
string doc_id = _DocInfo.ID; |
|
4973 |
string user_id = App.ViewInfo.UserID; |
|
4974 |
List<MarkupInfoItem> markupInfoItems = new List<MarkupInfoItem>(); |
|
4975 |
foreach (MarkupInfoItem item in this.gridViewMarkup.SelectedItems) |
|
4976 |
{ |
|
4977 |
markupInfoItems.Add(item); |
|
4978 |
} |
|
4979 |
Logger.sendReqLog("Consolidate", project_no + "," + user_id + "," + doc_id + "," + markupInfoItems, 1); |
|
4980 |
Logger.sendResLog("Consolidate", this.BaseClient.Consolidate(project_no, user_id, doc_id, markupInfoItems).ToString(), 1); |
|
4981 |
//this.BaseClient.Consolidate(project_no, user_id, doc_id, markupInfoItems); |
|
4982 |
|
|
4983 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + _DocInfo.ID, 1); |
|
4984 |
this.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, _DocInfo.ID); |
|
4985 |
|
|
4986 |
var item2 = gridViewMarkup.Items.Cast<MarkupInfoItem>().Where(d => d.Consolidate == 1 && d.AvoidConsolidate == 0).FirstOrDefault(); |
|
4987 |
if (item2 != null) |
|
4988 |
{ |
|
4989 |
Logger.sendReqLog("SetFinalPDFAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID + "," + item2.MarkupInfoID + "," + _ViewInfo.UserID, 1); |
|
4990 |
|
|
4991 |
BaseClient.SetFinalPDFAsync(_ViewInfo.ProjectNO, _DocInfo.ID, item2.MarkupInfoID, _ViewInfo.UserID); |
|
4992 |
} |
|
4993 |
else |
|
4994 |
{ |
|
4995 |
DialogMessage_Alert("Consolidation 된 코멘트가 존재하지 않습니다", "안내"); |
|
4996 |
} |
|
4997 |
} |
|
4998 |
} |
|
4999 |
|
|
5000 |
private void btnConsolidateFinalPDF_Loaded(object sender, RoutedEventArgs e) |
|
5001 |
{ |
|
5002 |
btnConsolidateFinalPDF = (sender as RadRibbonButton); |
|
5003 |
|
|
5004 |
if (App.ViewInfo != null) |
|
5005 |
{ |
|
5006 |
if (!App.ViewInfo.NewCommentPermission || !App.ViewInfo.CreateFinalPDFPermission) |
|
5007 |
{ |
|
5008 |
btnConsolidateFinalPDF.Visibility = System.Windows.Visibility.Collapsed; |
|
5009 |
} |
|
5010 |
} |
|
5011 |
} |
|
5012 |
|
|
4955 | 5013 |
private void SyncCompare_Click(object sender, RoutedEventArgs e) |
4956 | 5014 |
{ |
4957 | 5015 |
if (CompareMode.IsChecked) |
내보내기 Unified diff