コード例 #1
0
        private void verTareasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Text.Contains("Urendes - [Tareas]")).SingleOrDefault <Form>();

            if (existe != null)
            {
                existe.WindowState = FormWindowState.Maximized;
                existe.BringToFront();
            }
            else
            {
                Presentacion.Tareas.FormTareasPrincipal newMDIChild = new Presentacion.Tareas.FormTareasPrincipal();
                newMDIChild.MdiParent   = this;
                newMDIChild.WindowState = FormWindowState.Maximized;
                newMDIChild.Show();
            }
        }
コード例 #2
0
        private void enviarFormAnt()
        {
            Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name.Contains(nombreForm)).SingleOrDefault <Form>();

            if (existe != null)
            {
                if (nombreForm.Contains("FormVerTarea"))
                {
                    if (idComunidad != null)
                    {
                        guardarBloques();
                    }
                }
                else if (nombreForm.Contains("FormInsertarServicioTarea"))
                {
                    FormInsertarServicioTarea nueva = (FormInsertarServicioTarea)existe;
                    nueva.recibirBloque(dataGridViewBloques.SelectedRows[0].Cells[1].Value.ToString());
                }
                else if (nombreForm.Contains("FormTareasPrincipal"))
                {
                    FormTareasPrincipal nueva = (FormTareasPrincipal)existe;
                    nueva.recibirBloque(dataGridViewBloques.SelectedRows[0].Cells[0].Value.ToString(), dataGridViewBloques.SelectedRows[0].Cells[1].Value.ToString());
                }
                else if (nombreForm.Contains("FormListadoOrganos"))
                {
                    ComunidadesForms.CargosForms.FormListadoOrganos nueva = (ComunidadesForms.CargosForms.FormListadoOrganos)existe;
                    nueva.recibirBloque(dataGridViewBloques.SelectedRows[0].Cells[0].Value.ToString(), dataGridViewBloques.SelectedRows[0].Cells[1].Value.ToString());
                }
                else if (nombreForm.Contains("FormNuevoGrupo"))
                {
                    ComunidadesForms.CargosForms.FormNuevoGrupo nueva = (ComunidadesForms.CargosForms.FormNuevoGrupo)existe;
                    nueva.recibirBloque(dataGridViewBloques.SelectedRows[0].Cells[0].Value.ToString(), dataGridViewBloques.SelectedRows[0].Cells[1].Value.ToString());
                }
                else if (nombreForm.Contains("FormGestionesPrincipal"))
                {
                    FormGestionesPrincipal nueva = (FormGestionesPrincipal)existe;
                    nueva.recibirBloque(dataGridViewBloques.SelectedRows[0].Cells[0].Value.ToString(), dataGridViewBloques.SelectedRows[0].Cells[1].Value.ToString());
                }
            }
            this.Close();
        }
コード例 #3
0
 public FormDuplicarTarea(FormTareasPrincipal form_anterior, String idTipoTarea, String fIni, String descripcion, String coste, String acuerdoJunta, String fechaActaAcordado, String proximaJunta, String refSiniestro, String notas, String importante, String idEntidad, String nombreComunidad, int idComunidad, String Referencia, String idTarea, String tipoTarea)
 {
     InitializeComponent();
     this.form_anterior     = form_anterior;
     this.idTipoTarea       = idTipoTarea;
     this.fIni              = fIni;
     this.descripcion       = descripcion;
     this.coste             = coste;
     this.acuerdoJunta      = acuerdoJunta;
     this.fechaActaAcordado = fechaActaAcordado;
     this.proximaJunta      = proximaJunta;
     this.refSiniestro      = refSiniestro;
     this.notas             = notas;
     this.importante        = importante;
     this.idEntidad         = idEntidad;
     this.nombreComunidad   = nombreComunidad;
     this.idComunidad       = idComunidad;
     this.referencia        = Referencia;
     this.idTarea           = idTarea;
     this.tipoTarea         = tipoTarea;
 }
コード例 #4
0
        private void enviarOtroForm()
        {
            Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name.Contains(nombre_form_anterior)).SingleOrDefault <Form>();

            if (existe != null)
            {
                if (nombre_form_anterior == "FormAltaComunero")
                {
                    Presentacion.ComunidadesForms.ComunerosForms.FormAltaComunero nuevo = (Presentacion.ComunidadesForms.ComunerosForms.FormAltaComunero)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString());
                }
                //if (nombre_form_anterior == "FormAltaAsociacion") {
                //    Presentacion.ComunidadesForms.DivisionesForms.FormAltaAsociacion nuevo = (Presentacion.ComunidadesForms.DivisionesForms.FormAltaAsociacion) existe;
                //    nuevo.recogerEntidad(dataGridView1.SelectedCells[0].Value.ToString());
                //}
                if (nombre_form_anterior == "FormOperacionesCabeceraEdicion")
                {
                    Presentacion.ComunidadesForms.OperacionesForms.FormOperacionesCabeceraEdicion nuevo = (Presentacion.ComunidadesForms.OperacionesForms.FormOperacionesCabeceraEdicion)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString());
                }
                if (nombre_form_anterior == "FormOperacionesVencimientos")
                {
                    ComunidadesForms.OperacionesForms.FormOperacionesVencimientos nuevo = (ComunidadesForms.OperacionesForms.FormOperacionesVencimientos)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormOperacionesEditReparto")
                {
                    ComunidadesForms.OperacionesForms.FormOperacionesEditReparto nuevo = (ComunidadesForms.OperacionesForms.FormOperacionesEditReparto)existe;
                    nuevo.recogerBloque(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }

                if (nombre_form_anterior == "FormAccesoOperacionesTesoreria")
                {
                    ComunidadesForms.TesoreriaForms.FormAccesoOperacionesTesoreria nuevo = (ComunidadesForms.TesoreriaForms.FormAccesoOperacionesTesoreria)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormCrearCuentaComunidad")
                {
                    ComunidadesForms.TesoreriaForms.FormCrearCuentaComunidad nuevo = (ComunidadesForms.TesoreriaForms.FormCrearCuentaComunidad)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }

                if (nombre_form_anterior == "FormReasignarOperacion")
                {
                    ComunidadesForms.DivisionesForms.FormReasignarPagador nuevo = (ComunidadesForms.DivisionesForms.FormReasignarPagador)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }

                if (nombre_form_anterior == "FormNuevoRecibo")
                {
                    ComunidadesForms.Recibos.FormNuevoRecibo nuevo = (ComunidadesForms.Recibos.FormNuevoRecibo)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString());
                }
                if (nombre_form_anterior == "FormIngresoFondo")
                {
                    ComunidadesForms.OperacionesForms.FormIngresoFondo nuevo = (ComunidadesForms.OperacionesForms.FormIngresoFondo)existe;
                    nuevo.recibirComunero(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormAnyadirProveedor")
                {
                    ComunidadesForms.ProveedoresForms.FormAnyadirProveedor nuevo = (ComunidadesForms.ProveedoresForms.FormAnyadirProveedor)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (form_ant.Name.Contains("FormVerTarea"))
                {
                    Tareas.FormVerTarea nuevo = (Tareas.FormVerTarea)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString());
                }
                if (nombre_form_anterior == "FormInsertarContacto")
                {
                    Tareas.FormInsertarContacto nuevo = (Tareas.FormInsertarContacto)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[1].Value.ToString(), dataGridView1.SelectedCells[2].Value.ToString(), dataGridView1.SelectedCells[3].Value.ToString());
                }
                if (form_ant.Name.Contains("FormInsertarGestion"))
                {
                    Tareas.FormInsertarGestion nuevo = (Tareas.FormInsertarGestion)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormGestionesPrincipalEsperaDe")
                {
                    Tareas.FormGestionesPrincipal nuevo = (Tareas.FormGestionesPrincipal)existe;
                    nuevo.recibirEntidadEspera(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormGestionesPrincipalEntidad")
                {
                    Tareas.FormGestionesPrincipal nuevo = (Tareas.FormGestionesPrincipal)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
                if (nombre_form_anterior == "FormGeneralTareasPrincipal")
                {
                    Tareas.FormTareasPrincipal nuevo = (Tareas.FormTareasPrincipal)existe;
                    nuevo.recibirEntidad(dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString());
                }
            }
            this.Close();
        }
コード例 #5
0
 public FormSeleccionarCategoria(FormTareasPrincipal formAnt2, String idBloque)
 {
     InitializeComponent();
     this.formAnt2 = formAnt2;
     this.idBloque = idBloque;
 }
コード例 #6
0
 public FormSeleccionarCategoria(FormTareasPrincipal formAnt2)
 {
     InitializeComponent();
     this.formAnt2 = formAnt2;
 }
コード例 #7
0
 public FormReferenciaComunidad(FormTareasPrincipal form_anterior)
 {
     InitializeComponent();
     this.form_anterior = form_anterior;
 }