프로젝트

일반

사용자정보

개정판 02a45794

ID02a45794afdad2923d6e043ba34c631f205e16c2
상위 c52c1783
하위 83b5c192

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #1176 : ValidationCheck 항목 추가

Change-Id: I4fbad8a6095302f1b94d7e6021df95de699ab934

차이점 보기:

DTI_PID/SPPIDConverter/ConverterForm.cs
637 637
                buttonEditDefaultUnit.Text = unitForm.SelectedUnit;
638 638
            }
639 639
        }
640

  
641
        private void btnRefresh_Click(object sender, EventArgs e)
642
        {
643
            List<BaseModel.Document> validationFailDocs = new List<BaseModel.Document>();
644
            Project_Info _ProjectInfo = Project_Info.GetInstance();
645
            SPPID_DBInfo _SPPIDInfo = SPPID_DBInfo.GetInstance();
646
            if (!_ProjectInfo.Enable || !_SPPIDInfo.Enable)
647
            {
648
                MessageBox.Show(Msg.PleaseSetProjectInfo, Msg.Warning, MessageBoxButtons.OK, MessageBoxIcon.Warning);
649
                return;
650
            }
651

  
652
            foreach (DataRow row in _ConverterDT.Rows)
653
            {
654
                string fileName = row["colDrawingFilePath"].ToString();
655
                SPPID_Document document = new SPPID_Document(fileName);
656
                row["colDrawingNumber"] = document.DWGNAME;
657
                row["colDrawingName"] = document.DWGNAME;
658
                if (document.Enable)
659
                    row["colStatus"] = "Ready";
660
                else
661
                    row["colStatus"] = "Error";
662

  
663
                if (!_DicDocuments.ContainsKey(fileName))
664
                    _DicDocuments.Add(fileName, null);
665

  
666
                if (!document.Validation)
667
                    validationFailDocs.Add(document);
668

  
669
                _DicDocuments[fileName] = document;
670
            }
671

  
672

  
673
            if (validationFailDocs.Count > 0)
674
            {
675
                MessageForm messageForm = new MessageForm(validationFailDocs);
676
                messageForm.ShowDialog();
677
            }
678
        }
640 679
    }
641 680
}

내보내기 Unified diff

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