示例#1
0
        private void searchBtn_Click(object sender, EventArgs e)
        {
            noDataLabel.Visible = false;
            searchBtn.Enabled   = false;
            // 清除上次查询的数据
            logDataList.Rows.Clear();
            m_parm           = new LogSearchParam();
            m_parm.BeginTime = dateTimeStart.Value;
            m_parm.EndTime   = dateTimeEnd.Value;
            CheckTime ret = DataModel.Common.CheckDataTime(dateTimeStart.Value, dateTimeEnd.Value);

            if (ret == CheckTime.START_INVALID)
            {
                MessageBox.Show("开始时间不正常!");
                return;
            }
            else if (ret == CheckTime.END_INVALID)
            {
                MessageBox.Show("结束时间不正常!");
                return;
            }
            m_parm.LogLevel = GetLogLevel();
            m_parm.LogType  = GetLogType();
            // 默认使用降序
            m_parm.SortKind = E_VDA_LOG_SORT_TYPE.E_LOG_SORT_TYPE_TIME_DESC;
            m_parm.OptName  = this.opeName.Text;
            m_parm.StartMum = 0;
            m_parm.LogCount = 100;
            m_Vm.GetLogInfoList(m_parm);
            SearchStart = true;
        }