Пример #1
0
        void WriteSectionTitle(OrderSection section)
        {
            ConsoleColor fg = Console.ForegroundColor;

            Console.ForegroundColor = COLOR_TITLE;

            switch (section)
            {
            case OrderSection.D1:
                WriteCenter("Случаи обращения с лечебной целью");
                break;

            case OrderSection.D2:
                WriteCenter("Случаи ВМП");
                break;

            case OrderSection.D3:
                WriteCenter("Профосмотры и диспансеризация ("
                            + ProphSubsectionHelper.AsString(invoiceFilename.Subsection)
                            + ")");
                break;

            case OrderSection.D4:
                WriteCenter("Онкология");
                break;
            }
            Console.ForegroundColor = fg;
        }
Пример #2
0
        public static string AsString(OrderSection section, ProphSubsection subsection)
        {
            switch (section)
            {
            case OrderSection.D1:
                return("с лечебной целью");

            case OrderSection.D2:
                return("ВМП");

            case OrderSection.D3:
                return("профилактики и диспансеризации ("
                       + ProphSubsectionHelper.AsString(subsection) + ")");

            case OrderSection.D4:
                return("онкологии");
            }
            return(string.Empty);
        }