change - 统计报表时间不精确问题解决

dep_nodyang
wangsr 1 year ago
parent d54cd8c9a4
commit 3c96697d35

@ -93,12 +93,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjReport.DayWhiteEmbryo
private void SelectButton_Click(object sender, EventArgs e)
{
dt.Rows.Clear();
DateTime starttime = startDate.Value.Date.AddHours(startTime.Value.Hour);
starttime.AddMinutes(startTime.Value.Minute);
starttime.AddSeconds(startTime.Value.Second);
DateTime endtime = endDate.Value.Date.AddHours(endTime.Value.Hour);
endtime.AddMinutes(endTime.Value.Minute);
endtime.AddSeconds(endTime.Value.Second);
DateTime starttime = startDate.Value.Date.AddHours(startTime.Value.Hour).AddMinutes(startTime.Value.Minute).AddSeconds(startTime.Value.Second);
DateTime endtime = endDate.Value.Date.AddHours(endTime.Value.Hour).AddMinutes(endTime.Value.Minute).AddSeconds(endTime.Value.Second);
list = FreeSqlUnit.Instance.Select<DayWhiteEmbryoEntity>().Where(x => (x.CreateTime >= starttime && x.CreateTime <= endtime)).ToList();

Loading…
Cancel
Save