Exemplo n.º 1
0
 public frmPrestacion()
 {
     InitializeComponent();
     oPrestacionService  = new PrestacionService();
     btnEditar.Enabled   = false;
     btnEliminar.Enabled = false;
 }
        public Prestacion GetAllProducts()
        {
            try
            {
                int NroPrestacion = 696;

                Prestacion        p  = new Prestacion();
                PrestacionService ps = new PrestacionService(p);

                ps.InicializarModelo(NroPrestacion);


                //e.EtapaID = "4.1_7.1";
                //e.Descripcion = "Aprobacion de Proyectos";
                //p.ProgramaID = 5;
                //p.Descripcion = "Programa Jovenes";
                //p.Etapa = new List<Etapas>();
                //p.Etapa.Add(e);


                return(p);
            }
            catch (Exception e)
            {
                Console.WriteLine("{0} Exception caught.", e);
                return(p);
            }
        }