Beispiel #1
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);
        }