private void btnListProvMayorFact_Click(object sender, EventArgs e) { int indiceSemestre = nroSemestre.SelectedIndex;//indice seleccionado if (indiceSemestre != -1) { int semestre = Convert.ToInt32(nroSemestre.Items[indiceSemestre].ToString()); int indiceAño = selectAño.SelectedIndex; if (indiceAño != -1) { int año = Convert.ToInt32(selectAño.Items[indiceAño].ToString()); NavigableFormUtil.ForwardToDifferentWindow(this, new ListadoProMayorFact(this, semestre, año)); } else { MessageBoxUtil.ShowError("Seleccione un año"); } } else { MessageBoxUtil.ShowError("Seleccione un año"); } }
private void dgvRoles_CellContentClick(object sender, DataGridViewCellEventArgs e) { int idRol = int.Parse(dgvRoles.CurrentRow.Cells["id_rol"].Value.ToString()); string nombre = dgvRoles.CurrentRow.Cells["nombre"].Value.ToString(); bool habilitado = bool.Parse(dgvRoles.CurrentRow.Cells["habilitado"].Value.ToString()); NavigableFormUtil.ForwardToDifferentWindow(this, new FormModificacionRol(this, idRol, nombre, habilitado)); }
private void grillaClientes_CellContentClick(object sender, DataGridViewCellEventArgs e) { string nombre = grillaClientes.CurrentRow.Cells[0].Value.ToString(); string apellido = grillaClientes.CurrentRow.Cells[1].Value.ToString(); string dni = grillaClientes.CurrentRow.Cells[2].Value.ToString(); string mail = grillaClientes.CurrentRow.Cells[3].Value.ToString(); string telefono = grillaClientes.CurrentRow.Cells[4].Value.ToString(); string direccion = grillaClientes.CurrentRow.Cells[5].Value.ToString(); string piso = grillaClientes.CurrentRow.Cells[6].Value.ToString(); string dpto = grillaClientes.CurrentRow.Cells[7].Value.ToString(); string localidad = grillaClientes.CurrentRow.Cells[8].Value.ToString(); string codigoPostal = grillaClientes.CurrentRow.Cells[9].Value.ToString(); DateTime fechaNac = DateTime.Parse(grillaClientes.CurrentRow.Cells[10].Value.ToString()); NavigableFormUtil.ForwardToDifferentWindow(this, new FormModificacion(this, nombre, apellido, dni, mail, telefono, direccion, piso, dpto, localidad, codigoPostal, fechaNac)); }
private void grillaProveedores_CellContentClick(object sender, DataGridViewCellEventArgs e) { string mail = grillaProveedores.CurrentRow.Cells["mail"].Value.ToString(); int idProveedor = int.Parse(grillaProveedores.CurrentRow.Cells["id_proveedor"].Value.ToString()); decimal telefono = decimal.Parse(grillaProveedores.CurrentRow.Cells["telefono"].Value.ToString()); string cuit = grillaProveedores.CurrentRow.Cells["cuit"].Value.ToString(); string direccion = grillaProveedores.CurrentRow.Cells["direccion"].Value.ToString(); string piso = grillaProveedores.CurrentRow.Cells["piso"].Value.ToString(); string dpto = grillaProveedores.CurrentRow.Cells["departamento"].Value.ToString(); string localidad = grillaProveedores.CurrentRow.Cells["localidad"].Value.ToString(); string ciudad = grillaProveedores.CurrentRow.Cells["ciudad"].Value.ToString(); string codigoPostal = grillaProveedores.CurrentRow.Cells["codigo_postal"].Value.ToString(); string razonSocial = grillaProveedores.CurrentRow.Cells["razon_social"].Value.ToString(); string rubro = grillaProveedores.CurrentRow.Cells["rubro"].Value.ToString(); string nombreContacto = grillaProveedores.CurrentRow.Cells["nombre_contacto"].Value.ToString(); NavigableFormUtil.ForwardToDifferentWindow(this, new FormModificacion(this, idProveedor, mail, telefono, cuit, direccion, piso, dpto, localidad, ciudad, codigoPostal, razonSocial, rubro, nombreContacto)); }
private void btnCargarTarjeta_Click(object sender, EventArgs e) { NavigableFormUtil.ForwardToDifferentWindow(this, new CargarTarjeta(this)); }
private void dgvCompras_CellContentClick(object sender, DataGridViewCellEventArgs e) { int idCompra = Int32.Parse(dgvCompras.CurrentRow.Cells["id_compra"].Value.ToString()); NavigableFormUtil.ForwardToDifferentWindow(this, new SeleccionarCliente(this, idCompra)); }