Exemple #1
0
        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("Не заданы бухгалтеры для данной фирмы.");
            }
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        private Driver GetDriverForSending()
        {
            DriverList driverList = DriverList.getInstance();

            return(driverList.GetDriverListByRole(RolesList.Boss).First());
        }