DataRow drrow = clsYHAlert.dtCurrentAlarmTable.NewRow();
drrow["NMSAlertid"] = 3300165;
drrow["platformName"] = "成都寿险";
drrow["carrieroperatorName"] = "九州移动";
drrow["ipAddr"] = "172.16.0.39";
drrow["phoneNum"] = "15110926250";
drrow["sendTime"] = "2018-7-17 16:02:49";
drrow["findTimes"] = 1;
clsYHAlert.dtCurrentAlarmTable.Rows.Add(drrow);
string strYestoryNow = DateTime.Now.AddDays(-1).ToString();
string filterExpression = string.Format("sendTime<=#{0}#", strYestoryNow);
DataRow[] drDelete = clsYHAlert.dtCurrentAlarmTable.Select(filterExpression);
foreach (DataRow dr in drDelete)
{
clsYHAlert.dtCurrentAlarmTable.Rows.Remove(dr);
clsYHAlert.dtCurrentAlarmTable.AcceptChanges();
}