Ejemplo n.º 1
0
        protected void CustomersGridView_RowDeleting
            (Object sender, GridViewDeleteEventArgs e)
        {
            int cell = Convert.ToInt32(gr_dato.Rows[e.RowIndex].Cells[0].Text);

            string Del = new EjecutivosucursalBC().del_EjecutivoSucursal(Convert.ToInt16(cell));

            getmodulos();
        }
Ejemplo n.º 2
0
        protected void getmodulos()
        {
            List <Ejecutivosucursal> lModulo = new EjecutivosucursalBC().getEjecutivoclientebycliente(id_cliente, id_sucursal);



            this.gr_dato.DataSource = lModulo;
            this.gr_dato.DataBind();
        }
Ejemplo n.º 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (this.txt_nombre.Text == "")
            {
                FuncionGlobal.alerta("INGRESE LOS DATOS CORRESPONDIENTES", Page);
                return;
            }

            if (this.Label6.Text == "")
            {
                FuncionGlobal.alerta("INGRESE LOS DATOS CORRESPONDIENTES", Page);
                return;
            }
            string add = new EjecutivosucursalBC().add_EjecutivoSucursal(Convert.ToInt16(id_cliente), id_sucursal, this.txt_nombre.Text, this.txt_CORREO.Text,
                                                                         Convert.ToInt16(id_cliente_financiera));

            FuncionGlobal.alerta("MODULO INGRESADO CON EXITO", Page);
            this.txt_nombre.Text = "";
            this.txt_CORREO.Text = "";
            getmodulos();
        }