Esempio n. 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.EliminacertificacionLicExperiencia(mdlGenerales.Conexion,
                                                                            txtNumeroRuc.Text.ToString(), drv[1].ToString(),
                                                                            drv[3].ToString(), drv[5].ToString(),
                                                                            mdlGenerales.STRUsuario);

                    /*if (drv[2].ToString() == "SI")
                    *   DeleteFile(drv[6].ToString());*/
                    CargaGrid(txtNumeroRuc.Text.ToString(), txtRazonSocial.Text.ToString(),
                              txtNRP.Text.ToString(), txtCapacidad.Text.ToString());
                    MessageBoxAdv.Show("Se elimino la certificación seleccionado", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }