Exemplo n.º 1
0
        public void MostrarBotones()
        {
            CLS_Pantallas clspantbotones = new CLS_Pantallas();

            clspantbotones.UsuariosLogin = UsuariosLogin;
            clspantbotones.pantallasid   = IdPantallaBotones;
            clspantbotones.Mtdselecionarbotonespantalla();
            if (clspantbotones.Exito)
            {
                for (int t = 0; t < clspantbotones.Datos.Rows.Count; t++)
                {
                    switch (clspantbotones.Datos.Rows[t][0].ToString())
                    {
                    case "49":
                        btnBuscar.Links[0].Visible = true;
                        break;

                    case "50":
                        btnGuardar.Links[0].Visible = true;
                        break;
                    }
                }
            }
            else
            {
                XtraMessageBox.Show(clspantbotones.Mensaje);
            }
        }
Exemplo n.º 2
0
        public void controlbotones()
        {
            CLS_Pantallas clspantbotones = new CLS_Pantallas();

            clspantbotones.UsuariosLogin = UsuariosLogin;
            clspantbotones.pantallasid   = IdPantallaBotones;
            clspantbotones.Mtdselecionarbotonespantalla();
            if (clspantbotones.Exito.ToString() == "True")
            {
                int t;
                for (t = 0; t < clspantbotones.Datos.Rows.Count; t++)
                {
                    switch (clspantbotones.Datos.Rows[t][0].ToString())
                    {
                    case "13":
                        guardar.Links[0].Visible = true;
                        break;

                    case "14":
                        btnselusuario.Links[0].Visible = true;
                        break;

                    case "15":
                        btnlimpia.Links[0].Visible = true;
                        break;
                    }
                }
            }
            else
            {
            }
        }
Exemplo n.º 3
0
        public void MostrarBotones()
        {
            CLS_Pantallas clspantbotones = new CLS_Pantallas();

            clspantbotones.UsuariosLogin = UsuariosLogin;
            clspantbotones.pantallasid   = IdPantallaBotones;
            clspantbotones.Mtdselecionarbotonespantalla();
            if (clspantbotones.Exito)
            {
                for (int t = 0; t < clspantbotones.Datos.Rows.Count; t++)
                {
                    switch (clspantbotones.Datos.Rows[t][0].ToString())
                    {
                    case "38":
                        btnImpProveedor.Links[0].Visible = true;
                        break;

                    case "39":
                        btnBuscarFamilia.Links[0].Visible = true;
                        break;

                    case "40":
                        btnImportarArticulos.Links[0].Visible = true;
                        break;

                    case "41":
                        btnGenerarReporte.Links[0].Visible = true;
                        break;

                    case "42":
                        btnExportarExcel.Links[0].Visible = true;
                        break;

                    case "43":
                        btnLimpiar.Links[0].Visible = true;
                        break;
                    }
                }
            }
            else
            {
                XtraMessageBox.Show(clspantbotones.Mensaje);
            }
        }