Exemplo n.º 1
0
        public void EditarRespostaProspect(int iIDHistorico, int iIDPergunta, int iIDResposta)
        {
            scriptDAL DScript = new scriptDAL();
            string    sSql    = DScript.EditarRespostaProspect(iIDHistorico, iIDPergunta, iIDResposta);

            PontoBr.Banco.SqlServer.ExecutarSql(sSql);
        }
Exemplo n.º 2
0
        public DataTable RetornarRespostasPendentes(string sIDsRespostas)
        {
            scriptDAL DScript   = new scriptDAL();
            string    sSql      = DScript.RetornarRespostasPendentes(sIDsRespostas);
            DataTable dataTable = PontoBr.Banco.SqlServer.RetornarDataTable(sSql);

            return(dataTable);
        }
Exemplo n.º 3
0
        public DataTable RetornarPesquisaAgendamentos(string sNome)
        {
            scriptDAL DScript   = new scriptDAL();
            string    sSql      = DScript.RetornarPesquisaAgendamentos(sNome);
            DataTable dataTable = PontoBr.Banco.SqlServer.RetornarDataTable(sSql);

            return(dataTable);
        }
Exemplo n.º 4
0
        public DataTable RetornarAgendamentosPendentes()
        {
            scriptDAL DScript   = new scriptDAL();
            string    sSql      = DScript.RetornarAgendamentosPendentes();
            DataTable dataTable = PontoBr.Banco.SqlServer.RetornarDataTable(sSql);

            return(dataTable);
        }
Exemplo n.º 5
0
        //public string RetornarRespostaVenda(int iIDPergunta)
        //{
        //    scriptDAL DScript = new scriptDAL();
        //    string sSql = DScript.RetornarRespostaVenda(iIDPergunta);

        //    return sSql;
        //}

        public DataTable RetornarProximaPergunta(int iIDPergunta)
        {
            scriptDAL DScript   = new scriptDAL();
            string    sSql      = DScript.RetornarProximaPergunta(iIDPergunta);
            DataTable dataTable = PontoBr.Banco.SqlServer.RetornarDataTable(sSql);

            return(dataTable);
        }
Exemplo n.º 6
0
        public int RetornarIDResposta(string sResposta)
        {
            scriptDAL DScript = new scriptDAL();
            string    sSql    = DScript.RetornarIDResposta(sResposta);

            string sIDResposta = PontoBr.Banco.SqlServer.RetornarDadoUnicoDoBanco(sSql);

            if (sIDResposta == "")
            {
                return(0);
            }
            else
            {
                return(Convert.ToInt32(sIDResposta));
            }
        }