Example #1
0
        private void miEliminar_Click(object sender, EventArgs e)
        {
            Element el = GGCPersLiq.TableControl.Table.CurrentElement;

            if (el != null)
            {
                if (el is GridRecord)
                {
                    DataRowView drv                     = (el as Record).GetData() as DataRowView;
                    DataSet     DSDevuelveID            = new DataSet();
                    DataTable   DTDevuelveID            = new DataTable();
                    WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones();
                    WSLic.Url    = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx";
                    DSDevuelveID = WSLic.EliminaContactosEmpresa(mdlGenerales.Conexion,
                                                                 txtNumeroRuc.Text.ToString(), drv[1].ToString(),
                                                                 drv[2].ToString(), mdlGenerales.STRUsuario);
                    CargaGrid(txtNumeroRuc.Text.ToString(), txtRazonSocial.Text.ToString(),
                              txtNRP.Text.ToString(), txtCapacidad.Text.ToString());
                    MessageBoxAdv.Show("Se elimino el contacto seleccionado", "InformaciĆ³n", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }