프로젝트

일반

사용자정보

개정판 552af7c7

ID552af7c77a49984bea6b30e004c71e8c3781085c
상위 90d1dee0
하위 7e5557f8

임예철이(가) 7달 전에 추가함

Layer select all 주석처리

Change-Id: I9a31205f24b4d1254fc6f31d49a84e4d04a56ca5

차이점 보기:

KCOM/Views/MainMenu.xaml
1349 1349
                            ShowGroupFooters="False"
1350 1350
                            ShowGroupPanel="True"
1351 1351
                            Sorted="GridViewMarkup_Sorted"
1352
                            Sorting="GridViewMarkup_Sorting">
1352
                            Sorting="GridViewMarkup_Sorting"
1353
                            >
1354
                            
1355
                            <!-- Layer 추가 부분
1356
                            CanUserInsertRows="True"
1357
                            NewRowPosition="Top"
1358
                            AddingNewDataItem="gridViewMarkup_AddingNewDataItem"
1359
                            RowEditEnded="gridViewMarkup_RowEditEnded" 
1360
                            -->
1361
                            
1362
                            
1353 1363
                            <!--  SelectedCellsChanged="gridViewMarkup_SelectedCellsChanged"  -->
1354 1364
                            <!--<telerik:RadGridView.GroupDescriptors>
1355 1365
                                <telerik:GroupDescriptor Member="Depatment" SortDirection="Ascending" DisplayContent = "DEPT" x:Name="gDept">
KCOM/Views/MainMenu.xaml.cs
31 31
using System.Windows.Shapes;
32 32
using System.Windows.Threading;
33 33
using Telerik.Windows.Controls;
34
using Telerik.Windows.Controls.GridView;
34 35
using Telerik.Windows.Data;
35 36
//using static KCOM.TempFile;
36 37

  
......
459 460
        /// <param name="e"></param>
460 461
        public void DeleteCommentEvent(object sender, RoutedEventArgs e)
461 462
        {
462
            //정말 삭제 하시겠습니까?
463
            DialogParameters parameters = new DialogParameters()
463
            //ReadOnly 권한이 어떻게 들어오는지 모르겠음.
464
            //NewCommentPermission으로 일단 처리 함. (2024-06-05 IRON)
465
            if (App.ViewInfo.NewCommentPermission)
464 466
            {
465
                Owner = Application.Current.MainWindow,
466
                Content = new TextBlock()
467
                {
468
                    MinWidth = 400,
469
                    FontSize = 11,
470
                    Text = "Are you sure you want to delete?",
471
                    TextWrapping = System.Windows.TextWrapping.Wrap
472
                },
473
                Header = "Confirm",
474
                Theme = new VisualStudio2013Theme(),
475
                ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
476
                OkButtonContent = "Yes",
477
                CancelButtonContent = "No",
478
                Closed = delegate (object windowSender, WindowClosedEventArgs wc)
467
                //정말 삭제 하시겠습니까?
468
                DialogParameters parameters = new DialogParameters()
479 469
                {
480
                    if (wc.DialogResult == true)
470
                    Owner = Application.Current.MainWindow,
471
                    Content = new TextBlock()
481 472
                    {
482
                        //선택된 어도너가 있을시 삭제가 되지 않음
483
                        SelectionSet.Instance.UnSelect(this);
473
                        MinWidth = 400,
474
                        FontSize = 11,
475
                        Text = "Are you sure you want to delete?",
476
                        TextWrapping = System.Windows.TextWrapping.Wrap
477
                    },
478
                    Header = "Confirm",
479
                    Theme = new VisualStudio2013Theme(),
480
                    ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
481
                    OkButtonContent = "Yes",
482
                    CancelButtonContent = "No",
483
                    Closed = delegate (object windowSender, WindowClosedEventArgs wc)
484
                    {
485
                        if (wc.DialogResult == true)
486
                        {
487
                            //선택된 어도너가 있을시 삭제가 되지 않음
488
                            SelectionSet.Instance.UnSelect(this);
484 489

  
485
                        Button content = (sender as Button);
486
                        MarkupInfoItem item = content.CommandParameter as MarkupInfoItem;
490
                            Button content = (sender as Button);
491
                            MarkupInfoItem item = content.CommandParameter as MarkupInfoItem;
487 492

  
488
                        DeleteItem(item);
493
                            DeleteItem(item);
494
                        }
489 495
                    }
490
                }
491
            };
492
            RadWindow.Confirm(parameters);
496
                };
497
                RadWindow.Confirm(parameters);
498
            }
493 499
        }
494 500

  
495 501
        private System.Windows.Media.Animation.DoubleAnimation da = new System.Windows.Media.Animation.DoubleAnimation();
......
1178 1184
            System.Diagnostics.Debug.WriteLine("MarkupLoad - MarkupParser " + new TimeSpan(stopwatch.ElapsedTicks).ToString());
1179 1185

  
1180 1186
            /// fire selection event
1181
            gridViewMarkup.SelectAll(); // DIG 요청으로 첫 로드시 전체 선택 되도록 수정 2024-06-04 IRON
1187
            // DIG 요청으로 첫 로드시 전체 선택 되도록 수정 2024-06-04 IRON
1188
            // 다른 페이지 넘어갈 시 메시지 박스가 여러개 떠서 추가기능 주석 처리 2024-06-05 IRON
1189
            //gridViewMarkup.SelectAll(); 
1182 1190
            List<MarkupInfoItem> gridSelectionItem = gridViewMarkup.SelectedItems.Cast<MarkupInfoItem>().ToList(); //선택 된 마크업
1183 1191
            this.gridViewMarkup.UnselectAll();
1184 1192
            this.gridViewMarkup.Select(gridSelectionItem);
......
6323 6331
                
6324 6332
            }
6325 6333
        }
6326
    
6334

  
6335
        private void gridViewMarkup_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
6336
        {
6337
            foreach(var vCol in e.OwnerGridViewItemsControl.Columns)
6338
            {
6339
                vCol.IsReadOnly = false;
6340
            }
6341
        }
6342

  
6343
        private void gridViewMarkup_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
6344
        {
6345
            var vEditItem = e.EditedItem;
6346
            ((MarkupInfoItem)vEditItem).UserID = App.ViewInfo.UserID;
6347
            ((MarkupInfoItem)vEditItem).UpdateTime = DateTime.Now;
6348
            //((GridViewRow)e.Row).MarkupInfoItem).UserID == App.ViewInfo.UserID
6349

  
6350
            foreach (var vCol in ((RadGridView)e.OriginalSource).Columns)
6351
            {
6352
                vCol.IsReadOnly = true;
6353
            }
6354
        }
6355

  
6356

  
6327 6357

  
6328 6358
        /*
6329 6359
        private void zoomAndPanControl_Drop(object sender, DragEventArgs e)

내보내기 Unified diff

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