using System; using System.Collections.Generic; using System.Linq; using System.Web; //using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Threading;
public partial class Test : System.Web.UI.Page { static int a = 0; protected void Page_Load(object sender, EventArgs e) {
public static void OnTimer(Object source, System.Timers.ElapsedEventArgs e) { int days = e.SignalTime.Day; int hours = e.SignalTime.Hour; int Minutes = e.SignalTime.Minute; int Seconds = e.SignalTime.Second;
int iHour = 23; int iMinute = 59; int iSecond = 59; if (hours == iHour && Minutes == iMinute && Seconds == iSecond) { EIS.Cgiac.Cgiac.BLL.MemberInfo bll = new EIS.Cgiac.Cgiac.BLL.MemberInfo(); bll.UpdateQueryNo(); } int iDays = 1; int iHours = 00; int iMinutes = 00; int iSeconds = 00;
if (days == iDays && hours == iHours && Minutes == iMinutes && Seconds == iSeconds) { DateTime date = DateTime.Now; date = date.AddDays(1 - date.Day).AddMonths(-1); EIS.Cgiac.Cgiac.BLL.SystemLog bll = new EIS.Cgiac.Cgiac.BLL.SystemLog(); bll.Delete(date); } }