Exemple #1
0
        private void btnGFP_Click(object sender, EventArgs e)
        {
            if (validarFProblema())
            {
                maquina m = (maquina)cbxMaqP.SelectedItem;
                if (id_fproblema == 0)
                {
                    negocioMant.insertarProblema(dtpFechaP.Value, edtMotivoP.Text, m.id);
                }
                else
                {
                    negocioMant.modificarProblema(id_fproblema, dtpFechaP.Value, edtMotivoP.Text, m.id);
                }

                limpiarFProblema();
                bloquearFProblema();
                cargarFProblema();
            }
        }