private List <Driver> GetAccountants(string owner) { DriverList driverList = DriverList.getInstance(); if (owner == "ООО \"Б.Браун Медикал\"") { return(driverList.GetDriverListByRole(RolesList.AccountantBBraun)); } else if (owner == "ООО \"ГЕМАТЕК\"") { return(driverList.GetDriverListByRole(RolesList.AccountantGematek)); } else { throw new NotImplementedException("Не заданы бухгалтеры для данной фирмы."); } }
public EMail() { Driver driver = User.getDriver(); DriverList driverList = DriverList.getInstance(); Driver employeeTransport = driverList.GetDriverListByRole(RolesList.Editor).First(); _authorEmail = driver == null ? employeeTransport == null ? ROBOT_EMAIL : employeeTransport.email : driver.email; }
private Driver GetDriverForSending() { DriverList driverList = DriverList.getInstance(); return(driverList.GetDriverListByRole(RolesList.Boss).First()); }