Ejemplo n.º 1
0
 public ShowFixInfo(DataTable p_dtSource)
 {
     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.ValidateAll(p_dtSource);
     string _strFile = Application.StartupPath + "\\error\\" + DateTime.Now.ToString("yyyy-MM-dd") + "\\validate.error";
     Process.Start("notepad.exe",_strFile);
 }
Ejemplo n.º 2
0
        public ShowFixInfo(DataTable p_dtSource)
        {
            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.ValidateAll(p_dtSource);
            string _strFile = Application.StartupPath + "\\error\\" + DateTime.Now.ToString("yyyy-MM-dd") + "\\validate.error";

            Process.Start("notepad.exe", _strFile);
        }