public static WorkState GetRejectOrPlannedState(int idWorkByElement, IDriverDB driver)
 {
     if (driver.GetCountRejectWorkLogs(idWorkByElement) > 0)
     {
         return(WorkState.Rejected);
     }
     return(WorkState.Planned);
 }
 public WorkState GetPalannedOrCompleteState(IDriverDB driver)
 {
     if (driver.GetCountRejectWorkLogs(id) > 0)
     {
         return(WorkState.Rejected);
     }
     return(WorkState.Planned);
 }