private DataTable QueryAllLogdetail() { #region update select date if (rbtn_today.Checked) { startTime = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00"; endTime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"; } else if (rbtn_oneMonth.Checked) { startTime = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd") + " 00:00:00"; endTime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"; } else if (rbtn_threeMonth.Checked) { startTime = DateTime.Now.AddMonths(-3).ToString("yyyy-MM-dd") + " 00:00:00"; endTime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"; } else if (rbtn_oneYear.Checked) { startTime = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd") + " 00:00:00"; endTime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"; } else if (rbtn_custom.Checked) { startTime = this.pickerStartTime.Text; endTime = this.pickerEndTime.Text; } #endregion var logHistory = serviceClient.SelectAllTestResultLogHistory(this.tool_queryCondition.Text, startTime, endTime); var dt = logHistory.TestResultDataSet.Tables[0]; return(dt); }