Example #1
0
        private void OnReminderAlert(object sender, ReminderEventArgs e)
        {
            //Add your custom action here. For example, show the Reminders form:
            myEmployeeInfo = ACMSLogic.Staff.Ultis.EmployeeInfo(System.Convert.ToInt32(e.AlertNotifications[0].ActualAppointment.CustomFields["nEmployeeID"]));
            strHP          = myEmployeeInfo["strContactNo"].ToString();
            string       strSubject = e.AlertNotifications[0].ActualAppointment.Subject.ToString();
            StreamWriter SW;

            SW = File.CreateText(@"\\192.168.0.121\c$\Program Files\V-SMS Lite Edition\V-CharonLite\COW\out_going\MyTextFile.txt");
            //SW = File.CreateText(@"C:\MyTextFile.txt");
            SW.WriteLine(strHP + "\t" + strSubject);
            SW.Close();

            RemindersForm form = new RemindersForm((SchedulerStorage)sender);

            form.OnReminderAlert(e);
        }
        void schedulerControl1_RemindersFormShowing(object sender, RemindersFormEventArgs e)
        {
            ReminderAlertNotificationCollection alerts = new ReminderAlertNotificationCollection();

            foreach (ReminderAlertNotification alert in e.AlertNotifications)
            {
                if (alert.ActualAppointment.StatusKey.ToString() == "1")
                {
                    alerts.Add(alert);
                }
            }
            if (alerts.Count > 0)
            {
                RemindersForm     remindersForm = new RemindersForm((SchedulerControl)sender);
                ReminderEventArgs args          = new ReminderEventArgs(alerts);
                remindersForm.FormClosed += new FormClosedEventHandler(remindersForm_FormClosed);
                remindersForm.OnReminderAlert(args);
            }
            e.Handled = true;
        }
Example #3
0
        private void OnReminderAlert(object sender, ReminderEventArgs e)
        {
            //Add your custom action here. For example, show the Reminders form:
            myEmployeeInfo = ACMSLogic.Staff.Ultis.EmployeeInfo(System.Convert.ToInt32(e.AlertNotifications[0].ActualAppointment.CustomFields["nEmployeeID"]));
            strHP = myEmployeeInfo["strContactNo"].ToString();
            string strSubject = e.AlertNotifications[0].ActualAppointment.Subject.ToString();
            StreamWriter SW;
            SW = File.CreateText(@"\\192.168.0.121\c$\Program Files\V-SMS Lite Edition\V-CharonLite\COW\out_going\MyTextFile.txt");
            //SW = File.CreateText(@"C:\MyTextFile.txt");
            SW.WriteLine(strHP + "\t" + strSubject);
            SW.Close();

            RemindersForm form = new RemindersForm((SchedulerStorage)sender);
            form.OnReminderAlert(e);
        }