프로젝트

일반

사용자정보

개정판 d6a800c2

IDd6a800c292a0d9632a223f057cb0dc8b3086eac1
상위 d8e76389
하위 560ebc26

백흠경이(가) 일년 이상 전에 추가함

Test: Test 코드 수정

Change-Id: Ic56d9c500ab610808d7113cf1a52f0efb70263ff

차이점 보기:

ID2.Manager/ID2.Manager/Forms/Login.cs
81 81

  
82 82
        private void RadButtonOK_Click(object sender, EventArgs e)
83 83
        {
84
            MessageBox.Show("IsValidatioin");
85 84
            if (!IsValidatioin()) return;
86 85

  
87 86
            //DB연결해서 체크로직추가
88
            MessageBox.Show("GetUserInfo");
89 87
            UserInfo userInfo = new UserController().GetUserInfo(this.radTextBoxID.Text, Globals.EncryptionSHA256(this.radTextBoxPW.Text));
90 88

  
91 89
            if (userInfo == null)
......
96 94
            }
97 95

  
98 96
            //체크완료 시 로그인
99
            MessageBox.Show("GetAllUserInfo");
100 97
            Program.informations.ActiveUser = userInfo;
101 98
            IEnumerable<UserInfo> allUserList = new UserController().GetAllUserInfo();
102 99
            allUserList.ToList().ForEach(x => Program.informations.UserList.Add(x.DeepCopy(x)));
103 100

  
104
            MessageBox.Show("SaveConfig");
105 101
            SaveConfig(userInfo);
106 102

  
107 103
            this.DialogResult = DialogResult.OK;
ID2.Manager/ID2.Manager/Main.cs
56 56
        BriefAndImages briefAndImagesReview = new BriefAndImages { Dock = DockStyle.Fill };
57 57
        BriefAndImages briefAndImagesValidation = new BriefAndImages { Dock = DockStyle.Fill };
58 58

  
59
#if DEBUG
59 60
        Telerik.WinControls.RadControlSpy.RadControlSpyForm radControlSpyForm = new Telerik.WinControls.RadControlSpy.RadControlSpyForm();
61
#endif
60 62
        private readonly Color _SummaryColor = Color.FromArgb(255, 108, 55);
61 63

  
62 64
        public Main()
63 65
        {
66
            MessageBox.Show("Main");
64 67
            InitializeComponent();
65 68

  
66 69
            ID2.Manager.Common.Helpers.TableLayoutPanelHelper.SetDoubleBuffered(this);
......
151 154
        {
152 155
            if (keyData == (Keys.F10 | Keys.Control))
153 156
            {
157
#if DEBUG
154 158
                radControlSpyForm.Show();
159
#endif
155 160
            }
156 161

  
157 162
            if (keyData == (Keys.V | Keys.Control))
......
380 385
            }
381 386
        }
382 387

  
383
        #region Init, Load
388
#region Init, Load
384 389
        private void Initialize()
385 390
        {
386 391
            this.Text = Globals.Name;
......
615 620
            e.ChildRow.Height = 224;
616 621
        }
617 622

  
618
        #endregion
623
#endregion
619 624

  
620 625
        private void OpenProjectView_OpenProjectClick(object sender, EventArgs e)
621 626
        {
......
664 669
        {
665 670
            try
666 671
            {
667
                #region 도면
672
#region 도면
668 673
                //Project List
669 674
                if (this.radDropDownListProject.Items.Count > 0)
670 675
                    this.radDropDownListProject.Items.Clear();
......
702 707

  
703 708
                //도면번호 조회조건
704 709
                this.radTextBoxDocumentNo.Text = string.Empty;
705
                #endregion
710
#endregion
706 711

  
707
                #region 검토
712
#region 검토
708 713
                //문의(DOF)
709 714
                if (this.radDropDownListToIsDiscussion.Items.Count > 0)
710 715
                    this.radDropDownListToIsDiscussion.Items.Clear();
......
740 745
                });
741 746
                var allIsID2Work = new RadListDataItem("== 전체 ==", string.Empty);
742 747
                this.radDropDownListIsID2Work.Items.Insert(0, allIsID2Work);
743
                #endregion
748
#endregion
744 749

  
745
                #region 작업
750
#region 작업
746 751
                //ID2 Status
747 752
                if (this.radDropDownListID2Status.Items.Count > 0)
748 753
                    this.radDropDownListID2Status.Items.Clear();
......
764 769
                var allAVEVAStatus = new RadListDataItem("== 전체 ==", string.Empty);
765 770
                this.radDropDownListAVEVAStatus.Items.Insert(0, allAVEVAStatus);
766 771
                allAVEVAStatus.Selected = true;
767
                #endregion
772
#endregion
768 773

  
769
                #region 검수
774
#region 검수
770 775
                //도프텍 결과
771 776
                if (this.radDropDownListProdIsResult.Items.Count > 0)
772 777
                    this.radDropDownListProdIsResult.Items.Clear();
......
788 793
                var allClientIsResult = new RadListDataItem("== 전체 ==", string.Empty);
789 794
                this.radDropDownListClientIsResult.Items.Insert(0, allClientIsResult);
790 795
                allClientIsResult.Selected = true;
791
                #endregion
796
#endregion
792 797

  
793
                #region AVEVA
798
#region AVEVA
794 799
                //Gateway
795 800
                if (this.radDropDownListGateway.Items.Count > 0)
796 801
                    this.radDropDownListGateway.Items.Clear();
......
812 817
                var allDTIsRegSystem = new RadListDataItem("== 전체 ==", string.Empty);
813 818
                this.radDropDownListRegistration.Items.Insert(0, allDTIsRegSystem);
814 819
                allDTIsRegSystem.Selected = true;
815
                #endregion
820
#endregion
816 821

  
817 822
                this.GetDocList();
818 823
            }
......
829 834

  
830 835
        }
831 836

  
832
        #region Document List 조회
837
#region Document List 조회
833 838
        public void GetDocList()
834 839
        {
835 840
            try
......
954 959
                throw ex;
955 960
            }
956 961
        }
957
        #endregion
962
#endregion
958 963

  
959
        #region Button, Checkbox event
964
#region Button, Checkbox event
960 965
        private void RadCheckBox_CheckStateChanged(object sender, EventArgs e)
961 966
        {
962 967
            if (sender is RadCheckBox)
......
1047 1052
        {
1048 1053
            Application.Exit();
1049 1054
        }
1050
        #endregion
1055
#endregion
1051 1056

  
1052
        #region Grid event
1057
#region Grid event
1053 1058
        private void RadGridViewDocuments_CommandCellClick(object sender, GridViewCellEventArgs e)
1054 1059
        {
1055 1060
            if (e.Row is GridViewNewRowInfo)
......
1343 1348
        {
1344 1349
            this.lbSelectAndTotal.Text = $"{e.GridViewTemplate.DataView.Count} / {this.TotalCount} (Selected / Total)";
1345 1350
        }
1346
        #endregion
1351
#endregion
1347 1352

  
1348
        #region Excel
1353
#region Excel
1349 1354
        private UserInfo GetUser(string user)
1350 1355
        {
1351 1356
            UserInfo userInfo = informations.UserList.Where(x => x.ID.Equals(user)).FirstOrDefault();
......
1473 1478
                    int columnCount = ws.CalculateMaxUsedColumns();
1474 1479
                    int exRow = 8;
1475 1480

  
1476
                    #region Excel 유효성검사
1481
#region Excel 유효성검사
1477 1482

  
1478 1483
                    //Excel 포멧체크
1479 1484
                    if (rowCount < 10 || columnCount != 45)
......
1482 1487
                        return;
1483 1488
                    }
1484 1489

  
1485
                    #region 엑셀 필수값 체크(도면 : 이름,담당자, 난이도, Typical)
1490
#region 엑셀 필수값 체크(도면 : 이름,담당자, 난이도, Typical)
1486 1491
                    ws.Rows.SelectMany(row => row.AllocatedCells)
1487 1492
                           .Where(col => col.Column.Index > 5 && col.Column.Index < 10 && col.Row.Index > exRow && col.Value == null)
1488 1493
                           .ToList()
......
1499 1504
                        RadMessageBox.Show($"Please, check null value in excel.\n{errMsg}", "Information", MessageBoxButtons.OK, RadMessageIcon.Info);
1500 1505
                        return;
1501 1506
                    }
1502
                    #endregion
1507
#endregion
1503 1508

  
1504
                    #region 엑셀 도명명 중복 값 체크
1509
#region 엑셀 도명명 중복 값 체크
1505 1510
                    ws.Rows.SelectMany(row => row.AllocatedCells)
1506 1511
                                                 .Where(col => col.Column.Index == 6 && col.Row.Index > exRow)
1507 1512
                                                 .GroupBy(g => g.Row.Index)
......
1527 1532
                        RadMessageBox.Show($"Please, check the duplicate value in excel.\n{errMsg}", "Information", MessageBoxButtons.OK, RadMessageIcon.Info);
1528 1533
                        return;
1529 1534
                    }
1530
                    #endregion
1535
#endregion
1531 1536

  
1532
                    #endregion
1537
#endregion
1533 1538

  
1534 1539
                    List<Documents> appendDocuments = new List<Documents>();
1535 1540

  
......
1702 1707
                }
1703 1708
            }
1704 1709
        }
1705
        #endregion
1710
#endregion
1706 1711

  
1707
        #region Save event
1712
#region Save event
1708 1713

  
1709 1714
        private void SetSaved()
1710 1715
        {
......
2004 2009
                RadMessageBox.Show("Failed to reload the project.", Globals.Name, MessageBoxButtons.OK, RadMessageIcon.Error);
2005 2010
            }
2006 2011
        }
2007
        #endregion
2012
#endregion
2008 2013

  
2009
        #region ColumnGroup
2014
#region ColumnGroup
2010 2015
        private void InitColumnGroupsViewDefinition(RadGridView gridView)
2011 2016
        {
2012 2017
            ColumnGroupsViewDefinition columnGroupsView = new ColumnGroupsViewDefinition();
......
2122 2127

  
2123 2128
            gridView.MasterTemplate.ViewDefinition = columnGroupsView;
2124 2129
        }
2125
        #endregion
2130
#endregion
2126 2131

  
2127 2132
        private void txtFullSearch_TextChanged(object sender, EventArgs e)
2128 2133
        {

내보내기 Unified diff

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