示例#1
0
        public void CheckPossibilityToMoveToUnsuccessfulClosingStage(Deal deal, User user)
        {
            // права
            CheckPermissionToPerformOperation(deal, user, Permission.Deal_Stage_Change);

            // сущность
            deal.CheckPossibilityToMoveToUnsuccessfulClosingStage();

            // запросы к БД
            switch (deal.UnsuccessfulClosingStage.Value)
            {
            // 7.2
            case DealStage.ContractAbrogated:
                CheckPossibilityToCloseDeal(deal, deal.UnsuccessfulClosingStage.Value, user);
                break;
            }
        }