Exemplo n.º 1
0
        //public string ConvertToRoditelnyiCaseTotalName(string obj)
        //{
        //    //Guard.Against<ArgumentException>(obj.GetType() != typeof(string), "Ошибка операции конвертации падежей: тип сущности не является типом string");

        //    string name = null;
        //    string surname = null;
        //    string patronymic = null;
        //    DeclensionBLL.GetSNM((string)obj, out surname, out name, out patronymic);

        //    string totalName = DeclensionBLL.GetSNPDeclension(surname, name, patronymic, DeclensionCase.Rodit);
        //    return totalName;
        //}

        public string ConvertToRoditelnyiCaseApproiment(string obj)
        {
            //Guard.Against<ArgumentException>(obj.GetType() != typeof(string), "Ошибка операции конвертации падежей: тип сущности не является типом string");
            string name = DeclensionBLL.GetAppointmentDeclension((string)obj, DeclensionCase.Rodit);

            return(name);
        }
Exemplo n.º 2
0
        public string ConvertToRoditelnyiCaseTotalName(string obj)
        {
            //Guard.Against<ArgumentException>(obj.GetType() != typeof(string), "Ошибка операции конвертации падежей: тип сущности не является типом string");
            string name       = null;
            string surname    = null;
            string patronymic = null;

            DeclensionBLL.GetSNM((string)obj, out surname, out name, out patronymic);
            string totalName = DeclensionBLL.GetSNPDeclension(surname, name, patronymic, DeclensionCase.Rodit);

            return(totalName);
        }
Exemplo n.º 3
0
        public string ConvertFIOInitialse(string obj)
        {
            //Guard.Against<ArgumentException>(obj.GetType() != typeof(string), "Ошибка операции конвертации инициалов: тип сущности не является типом string");
            string name       = null;
            string surname    = null;
            string patronymic = null;

            DeclensionBLL.GetSNM((string)obj, out surname, out name, out patronymic);
            string InitialseName       = name.Substring(0, 1).ToUpper() + ".";
            string InitialsePatronymic = patronymic.Substring(0, 1).ToUpper() + ".";
            string totalName           = surname + " " + InitialseName + " " + InitialsePatronymic;

            return(totalName);
        }