Example #1
0
 public IEnumerable <Calendar> GetFilter(DateTime?ngaynhap = null, int?employeeID = null, int?departmentID = null, DateTime?time = null)
 {
     using (LichCongTacProvider provider = new LichCongTacProvider())
     {
         return(provider.GetFilter(ngaynhap, employeeID, departmentID, time));
     }
 }
Example #2
0
 public CoreResult Update(int?userId = default(int?), bool checkPermission = false)
 {
     using (LichCongTacProvider provider = new LichCongTacProvider())
     {
         return(provider.Update(this, userId, checkPermission));
     }
 }
Example #3
0
 public CoreResult Get()
 {
     using (LichCongTacProvider provider = new LichCongTacProvider())
     {
         var entity = provider.Get(this.CalendarID);
         if (entity != null)
         {
             #region Assign value
             this.CalendarID    = entity.CalendarID;
             this.CalendarDate  = entity.CalendarDate;
             this.employeesID   = entity.employeesID;
             this.DepartmentsID = entity.DepartmentsID;
             this.TimeFrom      = entity.TimeFrom;
             this.TimeTo        = entity.TimeTo;
             this.Description   = entity.Description;
             this.isActivity    = entity.isActivity;
             #endregion
             return(provider.GetResultFromStatusCode(CoreStatusCode.OK, ActionType.Get));
         }
         else
         {
             return(provider.GetResultFromStatusCode(CoreStatusCode.Failed, ActionType.Get));
         }
     }
 }
Example #4
0
 public Calendar Get(int key)
 {
     using (LichCongTacProvider provider = new LichCongTacProvider())
     {
         return(provider.Get(key));
     }
 }
Example #5
0
 public CoreResult Exist()
 {
     using (LichCongTacProvider provider = new LichCongTacProvider())
     {
         return(provider.Exist(this.CalendarID));
     }
 }