Exemple #1
0
        private void dataListPersonal_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                FrmDetallePersonal detallePersonal = new FrmDetallePersonal();

                guardaDataList(detallePersonal);

                detallePersonal.visualizaDatos(
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTarea"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["prioridad"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idProyecto"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_aplicacion"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaProyecto"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["EstadoTProy"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["titulo"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_empleado"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_empleadoReAsign"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["estado"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["fcreacion"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["fcierre"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaGrupo"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaOrigen"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaDestino"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["descripcion"].Value),
                    Convert.ToString(this.dataListPersonal.CurrentRow.Cells["ObsTiempos"].Value)
                    );
                FrmParent.frmparent.lanzarNuevoElemento(detallePersonal);
                StaticBarraHorizontal.horizontalParent.visualizaBotonesCambiarFormulario(true);
                StaticBarraHorizontal.horizontalParent.visualizaBotonGuardar(false);
                detallePersonal.desbloqueaBotones(false);
                detallePersonal.setModo("LECTURA");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error en el evento Double click ", "Error en el evento Double click ", MessageBoxButtons.OK, MessageBoxIcon.Error);
                MessageBox.Show(ex.Message);
            }
        }
Exemple #2
0
        public void botonEditar()
        {
            foreach (DataGridViewRow row in dataListPersonal.Rows)
            {
                if (Convert.ToBoolean(row.Selected))
                {
                    FrmDetallePersonal detallePersonal = new FrmDetallePersonal();

                    guardaDataList(detallePersonal);

                    FrmParent.frmparent.lanzarNuevoElemento(detallePersonal);
                    detallePersonal.setModo("LECTURA");
                    detallePersonal.rellenarComboboxes();
                    detallePersonal.visualizaDatos(
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTarea"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["prioridad"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idProyecto"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_aplicacion"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaProyecto"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["EstadoTProy"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["titulo"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_empleado"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["id_empleadoReAsign"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["estado"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["fcreacion"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["fcierre"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaGrupo"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaOrigen"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["idTareaDestino"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["descripcion"].Value),
                        Convert.ToString(this.dataListPersonal.CurrentRow.Cells["ObsTiempos"].Value)
                        );
                    StaticBarraHorizontal.horizontalParent.visualizaBotonesCambiarFormulario(false);
                    StaticBarraHorizontal.horizontalParent.visualizaBotonGuardar(true);
                    break;
                }
            }
        }