protected void PrepPageData() { // load the data into the grid view TrackerDotNet.classes.TrackerTools _TTools = new TrackerTools(); if (!_TTools.IsNextRoastDateByCityTodays()) { _TTools.SetNextRoastDateByCity(); // The next roast days have not been calcualted, calculate them and save. When customers city is found save the details } // add all people into the grid that are to receive reminders SetListOfContactsToSendReminderTo(); //(ref strs, ref dts); upnlCustomerCheckup.Visible = true; upnlContactItems.Visible = true; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // load the data into the grid view QOnT.classes.TrackerTools _TTools = new TrackerTools(); if (!_TTools.IsNextRoastDateByCityTodays()) { _TTools.SetNextRoastDateByCity(); // The next roast days have not been calcualted, calculate them and save. When customers city is found save the details } List <ContactToRemind> _ContactsToRemind = GetReocurringContacts(); //QOnT.control.ClientsToReceiveReminderQry _ClientsControl = new control.ClientsToReceiveReminderQry(); //List<control.ClientsToReceiveReminderQry> _ClientsToReceiveReminder = _ClientsControl.GetCustomersToReveiveReminder("NextCoffeeBy"); //gvCustomerCheckup.DataSource = _ClientsToReceiveReminder; //gvCustomerCheckup.DataBind(); } }