Exemplo n.º 1
0
        public string Descripcion(string clave, string tipo, Decimal PEM)
        {
            // Tipo == "X", "X" si activado.
            // Tipo == "I", Importe y Porcentaje sobre PEM.
            string            respuesta = "";
            PresupuestoMision pm        = null;
            int IDPresupuestoMisionTipo = ProveedorListas.IDDeCombo("ClavesMision", clave);

            if (IDPresupuestoMisionTipo > 0)
            {
                foreach (BaseNegocio b in this)
                {
                    if (Lib.NoIntNulo(b["IDPresupuestoMisionTipo"]) == IDPresupuestoMisionTipo)
                    {
                        pm = (PresupuestoMision)b;
                        break;
                    }
                }

                if (pm != null)
                {
                    respuesta = pm.ParaImprimir(tipo, PEM);
                }
            }

            return(respuesta);
        }