Exemple #1
0
        private void btnLastPage_Click(object sender, System.EventArgs e)
        {
            LogSysLog.nCurrentPage = LogSysLog.nTotalPage;
            DataTable dtab_logs = LogAPI.dispOnePageLogs(LogSysLog.nCurrentPage, LogSysLog.nPerPageLogs);

            this.displayFoundLogs(dtab_logs);
        }
Exemple #2
0
        private void btnLogSearchView_Click(object sender, System.EventArgs e)
        {
            this.dataGridViewLogs.DataSource = null;
            this.dataGridViewLogs.Update();
            int arg_1E_0 = LogSysLog.nCurrentPage;

            if (LogSysLog.goPage >= LogSysLog.nTotalPage)
            {
                LogSysLog.goPage       = LogSysLog.nTotalPage;
                LogSysLog.nCurrentPage = LogSysLog.nTotalPage;
            }
            else
            {
                if (LogSysLog.goPage < 1)
                {
                    LogSysLog.goPage       = 1;
                    LogSysLog.nCurrentPage = 1;
                }
                else
                {
                    LogSysLog.nCurrentPage = LogSysLog.goPage;
                }
            }
            DataTable dtab_logs = LogAPI.dispOnePageLogs(LogSysLog.nCurrentPage, LogSysLog.nPerPageLogs);

            this.displayFoundLogs(dtab_logs);
        }
Exemple #3
0
        private object searchLogProc(object param)
        {
            DataTable result = null;

            System.Collections.ArrayList arrayList = param as System.Collections.ArrayList;
            string s_keyword    = arrayList[0] as string;
            int    i_range_type = (int)arrayList[1];

            System.DateTime dt_start = (System.DateTime)arrayList[2];
            System.DateTime dt_end   = (System.DateTime)arrayList[3];
            LogSysLog.nTatalLogs = LogAPI.searchLogs(s_keyword, i_range_type, dt_start, dt_end);
            if (LogSysLog.nTatalLogs > 0)
            {
                LogSysLog.nTotalPage = LogSysLog.nTatalLogs / LogSysLog.nPerPageLogs;
                if (LogSysLog.nTatalLogs % LogSysLog.nPerPageLogs != 0)
                {
                    LogSysLog.nTotalPage++;
                }
                result = LogAPI.dispOnePageLogs(LogSysLog.nCurrentPage, LogSysLog.nPerPageLogs);
            }
            return(result);
        }
Exemple #4
0
 private object getOnePageLogProc(object param)
 {
     return(LogAPI.dispOnePageLogs(LogSysLog.nCurrentPage, LogSysLog.nPerPageLogs));
 }