Exemple #1
0
        private void toolSession_Click(object sender, EventArgs e)
        {
            classQuery        classQuery = new classQuery();
            classDBConnection classDB    = new classDBConnection();

            //Load Config
            classQuery.LoadConfigDetails();
            //Change directory to RM
            Directory.SetCurrentDirectory(classQuery.rmPath);
            //Execute sessopen.exe
            var process = Process.Start(classQuery.rmPath + "\\sessopen.exe");

            process.WaitForExit();
            //get last current session
            classDB.rmPath = classQuery.rmPath;
            classDB.rmConnect();
            classDB.RMQueries("SELECT TOP 1 session_no, date_start, date_end FROM rep" + DateTime.Today.ToString("yy") + " ORDER BY session_no DESC");
            //MessageBox.Show(classDB.rdr["date_end"].ToString());
            if (!DBNull.Value.Equals(classDB.rdr["date_end"]))
            {
                frmReprocess frmReprocess = new frmReprocess();
                frmReprocess.Show();
            }
            classDB.rmDisconnect();
        }
Exemple #2
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            Form frmReprocess = new frmReprocess();

            frmReprocess.ShowDialog();
        }