Example #1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         if (notification.Status == 1)
         {
             notification.Status = 2;
             notificationBUS.Update(notification);
             notificationBUS.UpdateNotificationStatus(staff.ID, notification.ID, notification.Status);
             String detail = "Nhân viên " + staff.Name + " nhận công việc.";
             notificationBUS.SendResponse(detail, DateTime.Now, DateTime.Now.AddHours(3), notification.ID, 3);
             scheduleBUS.AcceptWork(staff.ID, notification.ID);
         }
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }