Exemplo n.º 1
0
        public DataTable PesquisarLoginFuncionario()
        {
            try
                {
                    DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                    string condicao = string.Format("usuario = '{0}' AND senha = '{1}'", USUARIO, SENHA);
                    return dao.Visualizar_Dados("login", "*", condicao);

                }
                catch (Exception ex)
                {
                    throw ex;
                }
        }
Exemplo n.º 2
0
        public DataTable PesquisarDataValor()
        {
            try
                {
                    DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                    string condicao = string.Format("dt_pedido = '{0}'", DATA_PED);
                    return dao.Visualizar_Dados("pedido", "sum(val_pedido)", condicao);

                }
                catch (Exception ex)
                {
                    throw ex;
                }
        }
Exemplo n.º 3
0
        public DataTable Pedido()
        {
            try
                {

                    DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                    return dao.Visualizar_Dados("pedido", "max(idpedido)");

                }
                catch (Exception ex)
                {
                    throw ex;
                }
        }
Exemplo n.º 4
0
        public DataTable visualizarTodosProdutos()
        {
            try
            {
                DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                return dao.Visualizar_Dados("produto");

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 5
0
        public DataTable PesquisarProduto()
        {
            try
            {
                DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                string condicao = string.Format("idproduto = '{0}'", IDPRODUTO);
                return dao.Visualizar_Dados("produto", "*", condicao);

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 6
0
        public DataTable PesquisarUsuario()
        {
            try
                {
                    DAO_Mysql dao = new DAO_Mysql("localhost", "root", "", "acai");
                    string condicao = string.Format("idlogin = '******'", IDLOGIN);
                    return dao.Visualizar_Dados("login", "*", condicao);

                }
                catch (Exception ex)
                {
                    throw ex;
                }
        }