Esempio n. 1
0
 public void SetEntity(CalendarEntity Entity)
 {
     this.Title     = Entity.Title;
     this.Type      = Entity.Type;
     this.StartTime = Entity.StartTime;
     this.EndTime   = Entity.EndTime;
 }
Esempio n. 2
0
        public void Update(int ID, CalendarEntity Calendar)
        {
            var entity = this._DB.Get(ID);

            entity.SetEntity(Calendar);

            this._DB.Edit(entity);
        }
Esempio n. 3
0
 public CalendarInfo(CalendarEntity Entity)
 {
     this.ID         = Entity.ID;
     this.Title      = Entity.Title;
     this.Type       = Entity.Type;
     this.UserID     = Entity.UserID;
     this.StartTime  = Entity.StartTime;
     this.EndTime    = Entity.EndTime;
     this.CreateUser = Entity.CreateUser;
     this.CreateDate = Entity.CreateDate;
     this.IsDelete   = Entity.IsDelete;
 }
Esempio n. 4
0
        public int Add(CalendarInfo Calendar)
        {
            var entity = new CalendarEntity(Calendar);

            entity.IsDelete   = false;
            entity.CreateDate = DateTime.Now;
            this._DB.Add(entity);

            //foreach (var attachID in Calendar.AttachIDs)
            //{
            //    AddAttach(entity.ID, attachID);
            //}

            return(entity.ID);
        }
Esempio n. 5
0
 public void Update(int ID, CalendarEntity Entity)
 {
     this._ICalendarService.Update(ID, Entity);
 }