public void DodajRodjendan(vRadnik radnik)
        {
            RadnikService rs    = new RadnikService();
            int           label = (int)Settings.KalendarLabele.Rodjendan;

            DeleteIfExist(radnik.ID, label);
            DateTime     datum     = (DateTime)radnik.DatumRodjenja;
            Appointments rodjendan = new Appointments();

            rodjendan.Type           = 1;
            rodjendan.StartDate      = SharedService.StartOfDay(datum);
            rodjendan.EndDate        = SharedService.EndOfDay(datum);
            rodjendan.AllDay         = false;
            rodjendan.Subject        = string.Format("Rođendan - {0} {1}", radnik.Prezime, radnik.Ime);
            rodjendan.Location       = string.Empty;
            rodjendan.Description    = string.Empty;
            rodjendan.Status         = 0;
            rodjendan.Label          = label;
            rodjendan.ResourceID     = null;
            rodjendan.ResourceIDs    = null;
            rodjendan.ReminderInfo   = null;// string.Format("< Reminders >< Reminder AlertTime = '{0}' /></ Reminders >", datum);
            rodjendan.RecurrenceInfo = string.Format(@"<RecurrenceInfo Start=""{0}/{1}/{2} 00:00:00"" DayNumber=""{1}"" WeekOfMonth=""0"" WeekDays=""0"" Id =""{3}"" Month=""{0}"" Range=""1"" Type=""3"" Version =""1"" />", datum.Month, datum.Day, datum.Year, Guid.NewGuid());
            rodjendan.TimeZoneId     = "Central European Standard Time";
            rodjendan.CustomField1   = radnik.ID.ToString();
            Create(rodjendan);
            //return rodjendan;
        }
        public void DodajGodisnjicu20(vRadnik radnik)
        {
            RadnikService rs    = new RadnikService();
            int           label = (int)Settings.KalendarLabele.Godisnjica20;

            DeleteIfExist(radnik.ID, label);
            DateTime datum = (DateTime)radnik.DatumZaposJubilej;

            datum = datum.AddYears(20);
            Appointments godisnjica = new Appointments();

            godisnjica.Type           = 0;
            godisnjica.StartDate      = SharedService.StartOfDay(datum);
            godisnjica.EndDate        = SharedService.EndOfDay(datum);
            godisnjica.AllDay         = false;
            godisnjica.Subject        = string.Format("20. godišnjica zaposlenja - {0} {1}", radnik.Prezime, radnik.Ime);
            godisnjica.Location       = string.Empty;
            godisnjica.Description    = string.Empty;
            godisnjica.Status         = 0;
            godisnjica.Label          = label;
            godisnjica.ResourceID     = null;
            godisnjica.ResourceIDs    = null;
            godisnjica.ReminderInfo   = null; // string.Format("< Reminders >< Reminder AlertTime = '{0}' /></ Reminders >", datum);
            godisnjica.RecurrenceInfo = null; // string.Format(@"<RecurrenceInfo Start=""{0}/{1}/{2} 00:00:00"" DayNumber=""{1}"" WeekOfMonth=""0"" WeekDays=""0"" Id =""{3}"" Month=""{0}"" Range=""1"" Type=""3"" Version =""1"" />", datum.Month, datum.Day, datum.Year, Guid.NewGuid());
            godisnjica.TimeZoneId     = "Central European Standard Time";
            godisnjica.CustomField1   = radnik.ID.ToString();
            Create(godisnjica);
            //return godisnjica;
        }
        public void DodajIstekUgovora(vRadnik radnik)
        {
            DateTime datum;

            try
            {
                datum = (DateTime)radnik.DatumZapos;
                RadnikService rs    = new RadnikService();
                int           label = (int)Settings.KalendarLabele.IstekUgovora;
                DeleteIfExist(radnik.ID, label);
                Appointments istek = new Appointments();
                istek.Type           = 0;
                istek.StartDate      = SharedService.StartOfDay((DateTime)radnik.DatumIstekaUgovora);
                istek.EndDate        = SharedService.EndOfDay((DateTime)radnik.DatumIstekaUgovora);
                istek.AllDay         = false;
                istek.Subject        = string.Format("Istek ugovora - {0} {1}", radnik.Prezime, radnik.Ime);
                istek.Location       = string.Empty;
                istek.Description    = string.Empty;
                istek.Status         = 0;
                istek.Label          = label;
                istek.ResourceID     = null;
                istek.ResourceIDs    = null;
                istek.ReminderInfo   = null; // string.Format("< Reminders >< Reminder AlertTime = '{0}' /></ Reminders >", datum);
                istek.RecurrenceInfo = null; // string.Format(@"<RecurrenceInfo Start=""{0}/{1}/{2} 00:00:00"" DayNumber=""{1}"" WeekOfMonth=""0"" WeekDays=""0"" Id =""{3}"" Month=""{0}"" Range=""1"" Type=""3"" Version =""1"" />", datum.Month, datum.Day, datum.Year, Guid.NewGuid());
                istek.TimeZoneId     = "Central European Standard Time";
                istek.CustomField1   = radnik.ID.ToString();
                Create(istek);
                //return istek;
            }
            catch (Exception)
            {
            }
        }