Exemple #1
0
        private void miEliminar_Click(object sender, EventArgs e)
        {
            MFPersExperiencia Frm = new MFPersExperiencia();
            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.EliminaPersonalLicExperiencia(mdlGenerales.Conexion,
                                                                       txtTipoDoc.Text.ToString(), txtNDoc.Text.ToString(), drv[1].ToString(),
                                                                       drv[5].ToString(), drv[6].ToString(), mdlGenerales.STRUsuario);
                    if (drv[2].ToString() == "SI")
                    {
                        DeleteFile(drv[13].ToString());
                    }
                    CargaGrid(txtTipoDoc.Text.ToString(), txtNDoc.Text.ToString(), txtNombres.Text.ToString(),
                              txtApellidos.Text.ToString(), txtTelefono1.Text.ToString(), txtEmail.Text.ToString());
                    MessageBoxAdv.Show("Se elimino la experiencia seleccionada", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }