Пример #1
0
        private void btnValidacion_Click(object sender, EventArgs e)
        {
            frmValidacionDocsHacienda form = new frmValidacionDocsHacienda();

            form.ShowDialog();
        }
Пример #2
0
        private void OpcionMenu_Click(object sender, EventArgs e)
        {
            if (((ToolStripMenuItem)sender).Name == "mnuProductos")
            {
                frmProductos2 frm = new frmProductos2();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuCategoriaProductos")
            {
                frmCategoriaProducto frm = new frmCategoriaProducto();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }


            else if (((ToolStripMenuItem)sender).Name == "mnuMedidasProductos")
            {
                frmTipoMedida frm = new frmTipoMedida();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuClientes")
            {
                frmClientes frm = new frmClientes();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuTipoClientes")
            {
                frmTipoCliente frm = new frmTipoCliente();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuProveedores")
            {
                frmProveedores2 frm = new frmProveedores2();
                // frm.MdiParent = this;
                frm.Show();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuEmpleados")
            {
                frmEmpleado frm = new frmEmpleado();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuIngredientes")
            {
                frmIngredientes frm = new frmIngredientes();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuTipoIngredientes")
            {
                frmTipoIngrediente frm = new frmTipoIngrediente();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuMonedas")
            {
                frmMoneda frm = new frmMoneda();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }

            else if (((ToolStripMenuItem)sender).Name == "mnuTipoMonedas")
            {
                frmMoneda2 frm = new frmMoneda2();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuPuestos")
            {
                frmPuestos frm = new frmPuestos();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuCajas")
            {
                frmCajas frm = new frmCajas();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuTipoMovimientos")
            {
                frmTiposMovimiento frm = new frmTiposMovimiento();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuFacturacion")
            {
                frmFacturacion1 frm = new frmFacturacion1();
                frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuInventario")
            {
                frmInventario frm = new frmInventario();
                // frm.MdiParent = this;
                frm.Show();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuModificarInventario")
            {
                frmModificarInventario frm = new frmModificarInventario();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuConsultaFactElecClave")
            {
                frmConsultaFacturaElectronica frm = new frmConsultaFacturaElectronica();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuValidacionHacienda")
            {
                frmValidacionDocsHacienda frm = new frmValidacionDocsHacienda();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuParametrosSistema")
            {
                frmParametrosEmpresa frm = new frmParametrosEmpresa();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuDocumentosEmitidos")
            {
                frmBuscarDocumentos frm = new frmBuscarDocumentos();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuAcercaDe")
            {
                Acerca frm = new Acerca();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuConsultarFacHac")
            {
                frmConsultaFacturaElectronica frm = new frmConsultaFacturaElectronica();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuReporteHacienda")
            {
                frmMensajesHacienda frm = new frmMensajesHacienda();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuConsultaMensajes")
            {
                frmConsultasMensajesHacienda frm = new frmConsultasMensajesHacienda();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuValidarMensajes")
            {
                frmValidacionDocsHacienda frm = new frmValidacionDocsHacienda();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuAbonos")
            {
                frmAbonoCredito frm = new frmAbonoCredito();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuUsuarios")
            {
                frmUsuario frm = new frmUsuario();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuEmpresa")
            {
                frmEmpresa frm = new frmEmpresa();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuCambiarContrasena")
            {
                frmCambiarContrasena frm = new frmCambiarContrasena();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuParametros")
            {
                frmParametrosEmpresa frm = new frmParametrosEmpresa();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuCompras")
            {
                frmCompras frm = new frmCompras();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuExportarPrecios")
            {
                frmExportListaPreciosJSON frm = new frmExportListaPreciosJSON();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuImportarDatosJson")
            {
                frmImportaListaPreciosJSON frm = new frmImportaListaPreciosJSON();
                // frm.MdiParent = this;
                frm.ShowDialog();
            }
            else if (((ToolStripMenuItem)sender).Name == "mnuCambiarActividad")
            {
                List <tbEmpresaActividades> listaAct = actIns.getListaEmpresaActividad(Global.Usuario.idEmpresa, (int)Global.Usuario.idTipoIdEmpresa);

                if (listaAct.Count == 1)
                {
                    Global.actividadEconomic = listaAct.FirstOrDefault();
                }
                else
                {
                    frmActividadEconomicaCombo act = new frmActividadEconomicaCombo();
                    act.listaAct = listaAct;
                    act.ShowDialog();
                    tlsPrincipal.Text = Global.actividadEconomic.nombreComercial;
                }
            }
        }