protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InformesparcialesSemilleros informes = new InformesparcialesSemilleros();
                if (Session["Informe"] == null)
                {
                    Response.Redirect("Form2.aspx");
                }
                DataTable Datos = informes.consulta_informme(Session["Informe"].ToString());
                NombreProyecto.Text   = Datos.Rows[0]["nombreproyecto"].ToString();
                NombreSemillero.Text  = Datos.Rows[0]["Nombre del Semillero"].ToString();
                FechaRadicacion.Text  = Datos.Rows[0]["Fecha de Radicacion"].ToString();
                correo.Text           = Datos.Rows[0]["Correo del Coordinador"].ToString();
                LFechaInicio.Text     = Datos.Rows[0]["Fecha de Inicio"].ToString();
                LObservaciones.Text   = Datos.Rows[0]["Observaciones"].ToString();
                LAnexosDescrip.Text   = Datos.Rows[0]["Anexos"].ToString();
                LobjetivoEspe.Text    = Datos.Rows[0]["Objetivo Especifico"].ToString();
                LAnalisisDescrip.Text = Datos.Rows[0]["Analisis"].ToString();

                TObjetivo.Value      = Datos.Rows[0]["Objetivo Especifico"].ToString();
                TAnexos.Value        = Datos.Rows[0]["Anexos"].ToString();
                TObservaciones.Value = Datos.Rows[0]["Observaciones"].ToString();
                TAnalisi.Value       = Datos.Rows[0]["Analisis"].ToString();
                //tcorreo.Text = Datos.Rows[0]["Correo del Coordinador"].ToString();
            }
        }
        protected void Button1_Click1(object sender, EventArgs e)
        {
            InformesparcialesSemilleros semillero = new InformesparcialesSemilleros();
            semillero.agregar_datosinformesSemillero(new InformesparcialesSemilleros(TextBox2fecharadica.Text, TextBox3nombreSEMI.Text, TextBox2cedula.Text, TextBox2fechaI.Text, TextBox4TITULOPS.Text, TextBox2NOMinvestigador.Text, TextBox2correo.Text, TextareaObjetivos.Value, TextareaAnalisis.Value, TextareaSoporte.Value));

            Response.Redirect("CrearInformesParcialesSemilleros.aspx");
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InformesparcialesSemilleros informes = new InformesparcialesSemilleros();

                Informe.DataSource = informes.consulta_informmesSemilleros(Session["Rol"].ToString(), Session["IdUsuario"].ToString());
                Informe.DataBind();
            }
        }
        protected void Button2_Click(object sender, EventArgs e)
        {
            InformesparcialesSemilleros informes = new InformesparcialesSemilleros();

            informes.actualizar_informes(new InformesparcialesSemilleros()
            {
                TextBox2observaciones = TObservaciones.Value,
                TextareaSoporte       = TAnexos.Value,
                TextareaObjetivos     = TObjetivo.Value,
                TextareaAnalisis      = TAnalisi.Value
            }, Session["Informe"].ToString());
        }
Example #5
0
 public void agregar_datosinformesSemillero(InformesparcialesSemilleros objeto)
 {
     semillero.agregar_datosinformesSemillero(objeto);
 }