Example #1
0
 private void DataBindGrid()
 {
     Ordenar();
     gv_Grilla.DataSource = LstTiposDocumentacion;
     gv_Grilla.DataBind();
     UtilsPresentacionX5.EmptyGridFix(gv_Grilla, LstTiposDocumentacion, "Ingresar documentación");
 }
Example #2
0
 private void InicializarDatosPagina(string titulo, string txtBarraNav)
 {
     UtilsPresentacionX5.SetTextLabel(LblTituloPagina, titulo);
     BNav.Text = txtBarraNav;
     //UtilsPresentacionX5.SetPaginationProperties(gv_Grilla);
     Page.Title = titulo;
 }
Example #3
0
 private void DataBindGrid()
 {
     Ordenar();
     gv_Grilla.DataSource = ToDatatable.toDataTable(LstDatosBancos);
     gv_Grilla.DataBind();
     UtilsPresentacionX5.EmptyGridFix(gv_Grilla, LstDatosBancos, "Ingresar Banco");
 }
Example #4
0
    protected void gv_Grilla_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            IndexGrilla = UtilsPresentacionX5.CalcularIndiceGrilla(gv_Grilla, e.RowIndex);
            GridViewRow row = gv_Grilla.Rows[e.RowIndex];

            TextBox tbWebSite = row.FindControl("WebSite") as TextBox;

            DropDownList ddlFrecuente = row.FindControl("Frecuente") as DropDownList;

            TextBox tbDescripcion = row.FindControl("Descripcion") as TextBox;

            
            //Modificar
            string mensajeer = "";
            InvocaWsDao.AMBanco(LstDatosBancos[IndexGrilla].Id_Banco, ddlFrecuente.SelectedValue.Equals("S") ? true : false, tbDescripcion.Text, tbWebSite.Text, out mensajeer);

            gv_Grilla.EditIndex = -1;

            //LlenaGrilla(busquedaGrilla.BusquedaSeleccionada(), busquedaGrilla.BusquedaIngresada());
            LlenaGrilla(string.Empty, string.Empty);
        }
        catch (Exception ex)
        {
            if (log.IsErrorEnabled)
                log.ErrorFormat("Se generó una excepción : {0}", ex.Message);
            throw ex;
        }
    }
Example #5
0
 private void DataBindGrid()
 {
     Ordenar();
     gv_Grilla.DataSource = ToDatatable.toDataTable(LstDatosDocumentacionPrestacion);
     gv_Grilla.DataBind();
     UtilsPresentacionX5.EmptyGridFix(gv_Grilla, LstDatosDocumentacionPrestacion, "Ingresar Documentación");
 }
Example #6
0
 protected void gv_Grilla_RowCreated(object sender, GridViewRowEventArgs e)
 {
     try
     {
         UtilsPresentacionX5.SetImagenesOrdenamiento(sender, e, SortExpression, SortDirection);
     }
     catch (Exception ex)
     {
         if (log.IsErrorEnabled)
             log.ErrorFormat("Se generó una excepción : {0}", ex.Message);
         throw ex;
     }
 }
Example #7
0
 private void InicializarDatosPagina(string titulo, string txtBarraNav)
 {
     UtilsPresentacionX5.SetTextLabel(LblTituloPagina, titulo);
     BNav.Text  = txtBarraNav;
     Page.Title = titulo;
 }
Example #8
0
 private void InicializarDatosPagina(string titulo)
 {
     UtilsPresentacionX5.SetTextLabel(LblTituloPagina, titulo);
     Page.Title = titulo;
 }
Example #9
0
    protected void gv_Grilla_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        try
        {
            IndexGrilla = UtilsPresentacionX5.CalcularIndiceGrilla(gv_Grilla, e.RowIndex);
            GridViewRow row = gv_Grilla.Rows[e.RowIndex];

            TextBox tbDescripcion = row.FindControl("Descripcion") as TextBox;
            //TextBox tbCodArea = row.FindControl("cod_area_NPA") as TextBox;

            //TextBox tbNroLinea = row.FindControl("nro_linea") as TextBox;

            //TextBox tbFechaBaja = row.FindControl("fech_baja") as TextBox;

            //TextBox tbTipoLinea = row.FindControl("tipo_linea") as TextBox;

            //LstDatos[IndexGrilla].tipo_linea = tbTipoLinea.Text;

            //TextBox tbDelegacion = row.FindControl("delegacion") as TextBox;

            //LstDatos[IndexGrilla].delegacion = tbDelegacion.Text;

            //TextBox tbTipo = row.FindControl("tipo") as TextBox;

            //LstDatos[IndexGrilla].tipo = tbTipo.Text;


            //TextBox tbDomicilio = row.FindControl("domicilio") as TextBox;

            //LstDatos[IndexGrilla].domicilio = tbDomicilio.Text;

            //TextBox tbLocalidad = row.FindControl("localidad") as TextBox;

            //LstDatos[IndexGrilla].localidad = tbLocalidad.Text;

            //DateTime fecha;

            //LstDatos[IndexGrilla].fech_baja = null;
            //if (DateTime.TryParse(tbFechaBaja.Text, out fecha))
            //{
            //    LstDatos[IndexGrilla].fech_baja = Convert.ToDateTime(tbFechaBaja.Text);
            //}

            //Modificar
            string mensajeer = "";
            InvocaWsDao.AMTiposdeDocumentacion(LstTiposDocumentacion[IndexGrilla].CodTipoDocumentacion, tbDescripcion.Text, out mensajeer);

            gv_Grilla.EditIndex = -1;

            //LlenaGrilla(busquedaGrilla.BusquedaSeleccionada(), busquedaGrilla.BusquedaIngresada());
            LlenaGrilla(string.Empty, string.Empty);
        }
        catch (Exception ex)
        {
            if (log.IsErrorEnabled)
            {
                log.ErrorFormat("Se generó una excepción : {0}", ex.Message);
            }
            throw ex;
        }
    }