コード例 #1
0
 public static WorkState GetRejectOrPlannedState(int idWorkByElement, IDriverDB driver)
 {
     if (driver.GetCountRejectWorkLogs(idWorkByElement) > 0)
     {
         return(WorkState.Rejected);
     }
     return(WorkState.Planned);
 }
コード例 #2
0
 public WorkState GetPalannedOrCompleteState(IDriverDB driver)
 {
     if (driver.GetCountRejectWorkLogs(id) > 0)
     {
         return(WorkState.Rejected);
     }
     return(WorkState.Planned);
 }