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); } } }
private void miVentas_Click(object sender, EventArgs e) { MFPersExperiencia Frm = new MFPersExperiencia(); Element el = GGCPersLiq.TableControl.Table.CurrentElement; DataRowView drv = (el as Record).GetData() as DataRowView; if (el != null) { if (drv[2].ToString() == "SI") { string Archivo = ""; string Destino = txtArchivo.Text.ToString(); if (el != null) { if (el is GridRecord) { Archivo = drv[13].ToString(); //show column 2 } } Download(Archivo); } else { MessageBoxAdv.Show("El registro no presenta constancia", "InformaciĆ³n", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } }
private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { lblItem.Text = "0"; txtCliente.Text = ""; txtComentario.Text = ""; txtCargo.Text = ""; txtRubro.Text = ""; lblIDCargo.Text = ""; txtArchivo.Text = ""; dtpInicio.Value = DateTime.Now; dtpFin.Value = DateTime.Now; 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; lblItem.Text = drv[1].ToString(); //show column 2 lblIDCargo.Text = drv[3].ToString(); txtCargo.Text = drv[4].ToString(); txtRubro.Text = drv[5].ToString(); txtCliente.Text = drv[6].ToString(); txtComentario.Text = drv[7].ToString(); dtpInicio.Value = Convert.ToDateTime(drv[11].ToString()); dtpFin.Value = Convert.ToDateTime(drv[12].ToString()); txtArchivo.Text = drv[13].ToString(); } } }
private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { lblItem.Text = "0"; cmbTipo.SelectedIndex = 0; txtTitulo.Text = ""; txtCentroEstudios.Text = ""; txtArchivo.Text = ""; dtpExpedicion.Value = DateTime.Now; 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; lblItem.Text = drv[1].ToString(); //show column 2 for (Int32 I = 0; I < IDTipo.Count; I++) { if (Convert.ToInt16(IDTipo[I].ToString()) == Convert.ToInt32(drv[3].ToString())) { cmbTipo.SelectedIndex = I; } } //lblIDCargo.Text = drv[3].ToString(); txtTitulo.Text = drv[5].ToString(); txtCentroEstudios.Text = drv[6].ToString(); dtpExpedicion.Value = Convert.ToDateTime(drv[7].ToString()); txtArchivo.Text = drv[8].ToString(); } } }
private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { Limpiar(); 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; lblItem.Text = drv[1].ToString(); //show column 2 txtNombres.Text = drv[2].ToString(); txtTelefono1.Text = drv[3].ToString(); txtTelefono2.Text = drv[4].ToString(); txtMail.Text = drv[5].ToString(); } } //bloqueo WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; DSDevuelve = WSLic.DevuelveAntiguedadEmpresaLic(mdlGenerales.Conexion, txtRuc); DTMain = DSDevuelve.Tables[0]; int Horas = 0; foreach (DataRow row in DTMain.Rows) { Horas = int.Parse(row[0].ToString()); } Bloquear(Horas, mdlGenerales.STRUsuario); }
private void GGCPersLiq_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { lblItem.Text = "0"; txtCertificacion.Text = ""; dtpVencimiento.Value = DateTime.Now; txtEntidad.Text = ""; 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; lblItem.Text = drv[1].ToString(); //show column 2 txtCertificacion.Text = drv[3].ToString(); dtpVencimiento.Value = Convert.ToDateTime(drv[4].ToString()); txtEntidad.Text = drv[5].ToString(); } } }