프로젝트

일반

사용자정보

개정판 80458c15

ID80458c15719c6954c197630b6b5f42b939d517e4
상위 24c5bad3
하위 40b3ce25

이지연이(가) 약 6년 전에 추가함

issue #753 Consolidation 기능과 Merge PDF 기능을 한번에 할 수 있는 버튼 추가

차이점 보기:

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

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