Esempio n. 1
0
        public static string ToStringEnum(this ProductionOrderStatusType pProductionOrderStatusType)
        {
            var name = string.Empty;

            switch (pProductionOrderStatusType)
            {
            case ProductionOrderStatusType.Planned:
                name = Planned;
                break;

            case ProductionOrderStatusType.Released:
                name = Released;
                break;

            case ProductionOrderStatusType.Closed:
                name = Closed;
                break;

            case ProductionOrderStatusType.Cancelled:
                name = Cancelled;
                break;

            default:
                break;
            }
            return(name);
        }
Esempio n. 2
0
        public static string GetName(this ProductionOrderStatusType pProductionOrderStatusType)
        {
            var name = string.Empty;

            switch (pProductionOrderStatusType)
            {
            case ProductionOrderStatusType.Planned:
                name = "Planejado";
                break;

            case ProductionOrderStatusType.Released:
                name = "Liberado";
                break;

            case ProductionOrderStatusType.Closed:
                name = "Fechado";
                break;

            case ProductionOrderStatusType.Cancelled:
                name = "Cancelado";
                break;

            default:
                break;
            }

            return(name);
        }