Exemplo n.º 1
0
 public ShowFixInfo(string p_strTableName,string p_strMS)
 {
     if (!m_dtSource.Columns.Contains("TARGET"))
     {
         m_dtSource.Columns.Add("TARGET");
     }
     if (!m_dtSource.Columns.Contains("FIT"))
     {
         m_dtSource.Columns.Add("FIT");
     }
     InitializeComponent();
     string _strExportType = uctlBaseConfig.GetConfig("ExportType");
     switch (_strExportType) {
         case "DB":
             m_ivalidate = new ExportDB();
             break;
         case "XML":
             m_ivalidate = new ExportXml();
             break;
         case "DBF":
             break;
         case "EXCEL":
             break;
     }
     m_ivalidate.ValidateData(p_strTableName);
     dataGridView2.DataSource = m_dtSource.DefaultView;
     textBox2.Text = m_strWarning;
 }
Exemplo n.º 2
0
        public ShowFixInfo(string p_strTableName, string p_strMS)
        {
            if (!m_dtSource.Columns.Contains("TARGET"))
            {
                m_dtSource.Columns.Add("TARGET");
            }
            if (!m_dtSource.Columns.Contains("FIT"))
            {
                m_dtSource.Columns.Add("FIT");
            }
            InitializeComponent();
            string _strExportType = uctlBaseConfig.GetConfig("ExportType");

            switch (_strExportType)
            {
            case "DB":
                m_ivalidate = new ExportDB();
                break;

            case "XML":
                m_ivalidate = new ExportXml();
                break;

            case "DBF":
                break;

            case "EXCEL":
                break;
            }
            m_ivalidate.ValidateData(p_strTableName);
            dataGridView2.DataSource = m_dtSource.DefaultView;
            textBox2.Text            = m_strWarning;
        }