Esempio n. 1
0
        private void Btn_Guardar_Click(object sender, EventArgs e)
        {
            deshabilitarBotones();
            this.reporteMdl       = llenarReporteMdl();
            this.propiedadReporte = llenarPropiedadRpt();
            sentencia s            = new sentencia(usuario);
            Dialogo   dialogo      = new Dialogo();
            bool      confirmacion = dialogo.dialogoSiNo("Confirmacion", "Desea guardar?");

            if (confirmacion)
            {
                if (this.accion == "nuevo")
                {
                    reporteMdlControl.insertarReporteMdl(this.reporteMdl);
                    propiedadReporteControl.insertarPropiedadReporteSinApp(this.propiedadReporte);
                }
                else if (this.accion == "modificar")
                {
                    reporteMdlControl.actualizarReporteMdl(this.reporteMdl);
                }

                iniciazliarTbpConsulta();
                Tbc_RptMdl.SelectedTab = Tbp_Consulta;
                this.reporteMdl        = new ReporteModulo();
                llenarDgv();
                s.insertarBitacora(usuario, "Guardar reporte modulo", "Tbl_Modulo");
            }
        }
Esempio n. 2
0
        private void Btn_Guardar_Click(object sender, EventArgs e)
        {
            this.reporteMdl = llenarReporteMdl();

            Dialogo dialogo      = new Dialogo();
            bool    confirmacion = dialogo.dialogoSiNo("Confirmacion", "Desea guardar?");

            if (confirmacion)
            {
                if (this.accion == "nuevo")
                {
                    reporteMdlControl.insertarReporteMdl(this.reporteMdl);
                }
                else if (this.accion == "modificar")
                {
                    reporteMdlControl.actualizarReporteMdl(this.reporteMdl);
                }
            }
        }