Ejemplo n.º 1
0
        public static string UpdateAppointment(int id, DateTime sdate, DateTime edate, DateTime stime, DateTime etime, string etitle, string pinv, bool aday, string desc)
        {
            DateTime start = new DateTime(sdate.Year, sdate.Month, sdate.Day, stime.Hour, stime.Minute, stime.Second);
            DateTime end   = new DateTime(edate.Year, edate.Month, edate.Day, etime.Hour, etime.Minute, etime.Second);

            Protected.BLL.Event ev = new Protected.BLL.Event(id, etitle, start, end, aday, "Appointment", desc, pinv);
            var result             = MeetingClass.MeetingInfo.UpdateMeeting(ev);

            return(result.ToString());
        }
Ejemplo n.º 2
0
        public static string UpdateMeeting(int id, DateTime sdate, DateTime edate, DateTime stime, DateTime etime, string etitle, string desc, int mtype, bool aday)
        {
            DateTime start = new DateTime(sdate.Year, sdate.Month, sdate.Day, stime.Hour, stime.Minute, stime.Second);
            DateTime end   = new DateTime(edate.Year, edate.Month, edate.Day, etime.Hour, etime.Minute, etime.Second);

            Protected.BLL.Event ev = new Protected.BLL.Event(id, etitle, start, end, mtype, "Meeting", desc, aday);
            string username        = HttpContext.Current.User.Identity.Name;
            var    result          = Watcher.MeetingWatcher.UpdateInfo(ev, username);

            return(result.ToString());
        }
Ejemplo n.º 3
0
 public static Protected.BLL.Event GetEvent(int id)
 {
     Protected.BLL.Event e = MeetingClass.MeetingInfo.GetInfo(id);
     return(e);
 }