예제 #1
0
        public DataTable RetornarCamposVendaCampanhas(int iIDCampanha)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCamposVendaCampanhas(iIDCampanha);

            return(PontoBr.Banco.SqlServer.RetornarDataTable(sSql));
        }
예제 #2
0
        public string RetornarCampanhas(int iIDUsuario)//r
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCampanhasUsuario(iIDUsuario);

            return(sSql);
        }
예제 #3
0
        public DataTable RetornarCampanhasUsuario(int iIDUsuario)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCampanhasUsuario(iIDUsuario);

            return(PontoBr.Banco.SqlServer.RetornarDataTable(sSql));
        }
예제 #4
0
        public void ReconfigurarCampo(int iIDCampanha, string sIDCampo, string sTexto, string sTamanhoTextBox, string sLocalizacaoTextBox, string sLocalizacaoLabel, int iObrigatorio, string sLista)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.ReconfigurarCampo(iIDCampanha, sIDCampo, sTexto, sTamanhoTextBox, sLocalizacaoTextBox, sLocalizacaoLabel, iObrigatorio, sLista);

            PontoBr.Banco.SqlServer.ExecutarSql(sSql);
        }
예제 #5
0
        public DataTable RetornarCampoConfiguracaoInicial(string sIDCampo)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCampoConfiguracaoInicial(sIDCampo);

            return(PontoBr.Banco.SqlServer.RetornarDataTable(sSql));
        }
예제 #6
0
        public DataTable RetornarCampo(int IDCampanha, string sIDCampo)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCampo(IDCampanha, sIDCampo);

            return(PontoBr.Banco.SqlServer.RetornarDataTable(sSql));
        }
예제 #7
0
        public int RetornarIDCampanhaPreditivo(string sCampanha)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarIDCampanhaPreditivo(sCampanha);

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

            if (sIDCampanha == "")
            {
                return(0);
            }
            else
            {
                return(Convert.ToInt32(sIDCampanha));
            }
        }
예제 #8
0
        public campanha RetornarCampanha(int iIDCampanha)
        {
            campanhaDAL DCampanha = new campanhaDAL();
            string      sSql      = DCampanha.RetornarCampanha(iIDCampanha);
            DataTable   dataTable = PontoBr.Banco.SqlServer.RetornarDataTable(sSql);

            campanha Campanha = new campanha();

            Campanha.iIDCampanha  = Convert.ToInt32(dataTable.Rows[0]["IDCampanha"].ToString());
            Campanha.sCampanha    = dataTable.Rows[0]["Campanha"].ToString();
            Campanha.Fila         = dataTable.Rows[0]["Fila"].ToString();
            Campanha.TipoDiscador = dataTable.Rows[0]["TipoDiscador"].ToString();

            Campanha.iAtivo     = Convert.ToInt32(dataTable.Rows[0]["Ativo"]);//r
            Campanha.sOperadora = dataTable.Rows[0]["operadora"].ToString();

            return(Campanha);
        }
예제 #9
0
        public string RetornarDadosVenda(string sIDCampanha)
        {
            campanhaDAL DCampanha = new campanhaDAL();

            return(DCampanha.RetornarDadosVenda(sIDCampanha));
        }