Пример #1
0
 public DataSet GenderDrillDownSM(string Customer, string Appname, string Gender, string SMType)
 {
     DataSet GenderDrillDown = new DataSet();
     oDBH = new DatabaseHandler();
     GenderDrillDown = oDBH.FillData_SP("Sp_GenderDrillDownSM", Customer, Appname, Gender, SMType);
     return GenderDrillDown;
 }
Пример #2
0
 public int CheckUserEmail(string txtEmailID)
 {
     try
     {
         DatabaseHandler oDBH = new DatabaseHandler();
         DataSet validatemail = oDBH.FillData_SP("CheckUserEmail", txtEmailID);
         if (validatemail.Tables.Count > 0)
         {
             if (validatemail.Tables[0].Rows.Count > 0)
             {
                 //get the value
                 //string username = validatemail.Tables[0].Rows[0]["username"].ToString();
                 //return true;
                 return 1;
             }
             else
             {
                 //User not found
                 //return false;
                 return 0;
             }
         }
         else
         {
             //user not found, cancel operation
             //return false;
             return 0;
         }
     }
     catch
     {
         throw;
     }
 }
Пример #3
0
 public DataSet GenderWiseActionsSM(string Customer, string Appname, string SMType)
 {
     DataSet GenderWiseActions = new DataSet();
     oDBH = new DatabaseHandler();
     GenderWiseActions = oDBH.FillData_SP("GenderWiseActionsSM", Appname, Customer, SMType);
     return GenderWiseActions;
 }
Пример #4
0
 public DataSet Geteyeballcount1SM(string Customer, string Appname, string SMType)
 {
     DataSet eyeballcount = new DataSet();
     oDBH = new DatabaseHandler();
     eyeballcount = oDBH.FillData_SP("eyeballcount1SM", Appname, Customer, SMType);
     return eyeballcount;
 }
Пример #5
0
 public bool EditAppUserDetails(SonetPie osonetpie, AppUser oDCAppUser)
 {
     try
     {
         DatabaseHandler oDBH = new DatabaseHandler();
         if (oDCAppUser.SBirthdate == "")
         {
             oDBH.FillData_SP("EditAppUserDetails", Convert.ToString(osonetpie.QSvars["ADID"]), oDCAppUser.SonetID, oDCAppUser.City, oDCAppUser.State, oDCAppUser.Country, oDCAppUser.EmailID, oDCAppUser.UserStatus, oDCAppUser.Gender, System.DBNull.Value, oDCAppUser.SFriend_count);
             return true;
         }
         else
         {
             oDBH.FillData_SP("EditAppUserDetails", Convert.ToString(osonetpie.QSvars["ADID"]), oDCAppUser.SonetID, oDCAppUser.City, oDCAppUser.State, oDCAppUser.Country, oDCAppUser.EmailID, oDCAppUser.UserStatus, oDCAppUser.Gender, oDCAppUser.SBirthdate, oDCAppUser.SFriend_count);
             return true;
         }
     }
     catch (Exception ex)
     {
         //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
         throw ex;
     }
 }
Пример #6
0
        public int ConfirmResetPassword(string cid)
        {
            try
            {
                DatabaseHandler oDBHProd = new DatabaseHandler();
                StringBuilder oSBQueryPRod = new StringBuilder();

                DataSet confirmreset = oDBHProd.FillData_SP("ConfirmResetPassword", cid);
                if (confirmreset.Tables.Count > 0)
                {
                    if (confirmreset.Tables[0].Rows.Count > 0)
                    {
                        //get the value
                        //string username = validatemail.Tables[0].Rows[0]["username"].ToString();
                        //return true;
                        string status = confirmreset.Tables[0].Rows[0]["fpStatus"].ToString();
                        if (status == "1")
                        {
                            return 1;
                        }
                        else
                        {
                            return 0;
                        }

                    }
                    else
                    {
                        //User not found
                        //return false;
                        return 0;
                    }
                }
                else
                {
                    //user not found, cancel operation
                    //return false;
                    return 0;
                }
            }
            catch
            {
                throw;
            }
        }
Пример #7
0
        public DataSet GetAppwiseActionsChart1(string Customer, string Appname)
        {
            // AnalyticsDataEnums oADE = new AnalyticsDataEnums();
            // BindingList<string> oList = new BindingList<string>();
            //DataSet dsNew= new DataSet();
            //oDBH = new DatabaseHandler();
            //dsNew = oDBH.FillData_SP("AppwiseActionsChart1", Appname, Customer);

            //foreach (DataRow dr in dsNew.Tables[0].Rows)
            //{
            //    oADE.NotifierType1 = dr["NotifierType"].ToString();
            //    oADE.YearMonth1 = dr["YearMonth"].ToString();
            //    oADE.NotifierTypeCount1 = dr["NotifierTypeCount"].ToString();
            //    oList.Add(oADE.ToString());
            //}

            //return oList;
            DataSet AppwiseActionsChart1 = new DataSet();
            oDBH = new DatabaseHandler();
            AppwiseActionsChart1 = oDBH.FillData_SP("AppwiseActionsChart1", Appname, Customer);
            return AppwiseActionsChart1;
        }
Пример #8
0
 public DataSet GetPlatformWiseActions1(string Customer, string Appname)
 {
     DataSet GenderWiseActions = new DataSet();
     oDBH = new DatabaseHandler();
     GenderWiseActions = oDBH.FillData_SP("GetPlatformWiseActions", Appname, Customer);
     return GenderWiseActions;
 }
Пример #9
0
 public string GetProductHTML(string DID)
 {
     try
     {
         DatabaseHandler oDBH = new DatabaseHandler();
         DataSet dsFinalHTML = new DataSet();
         dsFinalHTML = oDBH.FillData_SP("GetProductHTML", DID);
         if (dsFinalHTML.Tables.Count > 0)
         {
             if (dsFinalHTML.Tables[0].Rows.Count > 0)
             {
                 return dsFinalHTML.Tables[0].Rows[0]["ProductHTML"].ToString();
             }
         }
         else
         {
             return null;
         }
     }
     catch (Exception ex)
     {
         //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
         throw ex;
     }
     return string.Empty;
 }
Пример #10
0
        public DataSet GetPeriodDrillDown(string Appname, string YearMonth)
        {
            //AnalyticsDataEnumsLocationPeriod oADE = new AnalyticsDataEnumsLocationPeriod();
            //List<string> oList = new List<string>();
            //DataSet dsNew = new DataSet();
            //oDBH = new DatabaseHandler();
            //dsNew = oDBH.FillData_SP("Sp_PeriodDrillDown", Appname, YearMonth);

            //foreach (DataRow dr in dsNew.Tables[0].Rows)
            //{
            //    oADE.YearMonth1 = dr["YearMonth"].ToString();
            //    oADE.NotifierType1 = dr["NotifierType"].ToString();
            //    oADE.NotifierTypeCount1 = dr["NotifierTypeCount"].ToString();
            //    oList.Add(oADE.ToString());
            //}

            //return oList;
            DataSet PeriodDrillDown = new DataSet();
            oDBH = new DatabaseHandler();
            PeriodDrillDown = oDBH.FillData_SP("Sp_PeriodDrillDown", Appname, YearMonth);
            return PeriodDrillDown;
        }
Пример #11
0
 public DataSet GetLocationWise1SM(string Customer, string Appname, string SMType)
 {
     DataSet LocationWise = new DataSet();
     oDBH = new DatabaseHandler();
     LocationWise = oDBH.FillData_SP("LocationWise1SM", Appname, Customer, SMType);
     return LocationWise;
 }
Пример #12
0
        public SweepStakesData GetSweepDataForEditing(string ADID)
        {
            try
            {
                DatabaseHandler oDBH = new DatabaseHandler();
                DataSet dsFinalHTML = new DataSet();
                dsFinalHTML = oDBH.FillData_SP("GetSweepDataForEditing", ADID);
                if (dsFinalHTML.Tables.Count > 0)
                {
                    SweepStakesData oSweepData = new SweepStakesData();
                    oSweepData.SSweepAboutUs = dsFinalHTML.Tables[0].Rows[0]["AboutUs"].ToString();
                    oSweepData.SSweepEndDate = dsFinalHTML.Tables[0].Rows[0]["EndDate"].ToString();
                    oSweepData.SSweepPrivacy = dsFinalHTML.Tables[0].Rows[0]["Privacy"].ToString();
                    oSweepData.SSweeprules = dsFinalHTML.Tables[0].Rows[0]["Rules"].ToString();
                    oSweepData.SSweepStartDate = dsFinalHTML.Tables[0].Rows[0]["StartDate"].ToString();
                    oSweepData.SSweepTerms = dsFinalHTML.Tables[0].Rows[0]["Terms"].ToString();

                    oSweepData.SSweepExpiryDate = dsFinalHTML.Tables[0].Rows[0]["ExpiryDate"].ToString();
                    oSweepData.SCouponCode = dsFinalHTML.Tables[0].Rows[0]["CouponCode"].ToString();
                    oSweepData.SCouponDesc = dsFinalHTML.Tables[0].Rows[0]["CouponDesc"].ToString();
                    oSweepData.SCouponReedem = dsFinalHTML.Tables[0].Rows[0]["CouponReedem"].ToString();
                    oSweepData.SEligibility = dsFinalHTML.Tables[0].Rows[0]["EligibilityDetails"].ToString();
                    oSweepData.SPRizeDetails = dsFinalHTML.Tables[0].Rows[0]["PrizeDetails"].ToString();
                    oSweepData.SSweepWinners = Convert.ToInt32(dsFinalHTML.Tables[0].Rows[0]["SweepWinners"].ToString());

                    return oSweepData;
                }
                else
                {
                    return null;
                }
            }
            catch (Exception ex)
            {
                //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
                throw ex;
            }
        }
Пример #13
0
 public DataTable GetPreviewProduct(string PDID)
 {
     try
     {
         DatabaseHandler oDBH = new DatabaseHandler();
         return oDBH.FillData_SP("GetPreviewProduct", PDID).Tables[0];
     }
     catch (Exception ex)
     {
         //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
         throw ex;
     }
 }
Пример #14
0
        public DataSet TotalActions3SM(string Appname, string Customer, string SMType)
        {
            DataSet gtactions = new DataSet();

            oDBH = new DatabaseHandler();
            gtactions = oDBH.FillData_SP("TotalActions3SM", Appname, Customer, SMType);

            return gtactions;
        }
Пример #15
0
 public DataSet GetLocationDrillDownSM(string Customer, string Appname, string Country, string SMType)
 {
     DataSet LocationDrillDown_stte = new DataSet();
     oDBH = new DatabaseHandler();
     LocationDrillDown_stte = oDBH.FillData_SP("Sp_LocationDrillDown_StateSM", Customer, Appname, Country, SMType);
     return LocationDrillDown_stte;
 }
Пример #16
0
 public DataSet GetLocationDrillDown2_Gender(string Customer, string Appname, string City)
 {
     DataSet LocationDrillDown2_Gender = new DataSet();
     oDBH = new DatabaseHandler();
     LocationDrillDown2_Gender = oDBH.FillData_SP("Sp_LocationDrillDown2_Gender", Customer, Appname, City);
     return LocationDrillDown2_Gender;
 }
Пример #17
0
 public DataSet GetLocationDrillDown1_City(string Customer, string Appname, string State)
 {
     DataSet LocationDrillDown1_City = new DataSet();
     oDBH = new DatabaseHandler();
     LocationDrillDown1_City = oDBH.FillData_SP("Sp_LocationDrillDown1_City", Customer, Appname, State);
     return LocationDrillDown1_City;
 }
Пример #18
0
        public DataSet GetLocationDrillDown1_Actions(string Customer, string Appname, string State)
        {
            //AnalyticsDataEnumsLocationActions oADE = new AnalyticsDataEnumsLocationActions();
            //List<string> oList = new List<string>();
            //DataSet dsNew = new DataSet();
            //oDBH = new DatabaseHandler();
            //dsNew = oDBH.FillData_SP("Sp_LocationDrillDown1_Actions", Customer, Appname, State);
            //dsNew.Tables[0].TableName = "myTable";

            //foreach (DataRow dr in dsNew.Tables[0].Rows)
            //{
            //    oADE.Gender1 = dr["Gender"].ToString();
            //    oADE.NotifierType1 = dr["NotifierType"].ToString();
            //    oADE.NotifierTypeCount1 = dr["NotifierTypeCount"].ToString();
            //    oList.Add(oADE.ToString());
            //}

            //return oList;
            DataSet LocationDrillDown1_Actions = new DataSet();
            oDBH = new DatabaseHandler();
            LocationDrillDown1_Actions = oDBH.FillData_SP("Sp_LocationDrillDown1_Actions", Customer, Appname, State);
            return LocationDrillDown1_Actions;
        }
Пример #19
0
        public DataSet Getlevelwisequery1(string Customer, string Appname)
        {
            DataSet levelwise = new DataSet();

            oDBH = new DatabaseHandler();
            levelwise = oDBH.FillData_SP("levelwisequery1", Customer, Appname);

            return levelwise;
        }
Пример #20
0
 public DataSet GetLevelsDrillDown_Location(string Appname, int Level)
 {
     DataSet LevelsDrillDown_Location = new DataSet();
     oDBH = new DatabaseHandler();
     LevelsDrillDown_Location = oDBH.FillData_SP("Sp_LevelsDrillDown_Location", Appname, Level);
     return LevelsDrillDown_Location;
 }
Пример #21
0
 public DataSet GetLevelsDrillDown_Gender(string Appname, int Level)
 {
     DataSet LevelsDrillDown_Gender = new DataSet();
     oDBH = new DatabaseHandler();
     LevelsDrillDown_Gender = oDBH.FillData_SP("Sp_LevelsDrillDown_Gender", Appname, Level);
     return LevelsDrillDown_Gender;
 }
Пример #22
0
 public DataSet GetTotalActionsSM(string Customer, string Appname, string NotifierType)
 {
     DataSet TotalActions = new DataSet();
     oDBH = new DatabaseHandler();
     TotalActions = oDBH.FillData_SP("TotalActions1", Appname, Customer, NotifierType);
     return TotalActions;
 }
Пример #23
0
        public DataSet GetUniquevisitors1SM(string Customer, string Appname, string SMType)
        {
            DataSet uniquevistors = new DataSet();

            oDBH = new DatabaseHandler();
            uniquevistors = oDBH.FillData_SP("Uniquevisitors1SM", Appname, Customer, SMType);

            return uniquevistors;
        }
Пример #24
0
        public bool IsUserCreatedForTwitter(string user_id, string appConfigDID)
        {
            try
            {
                DatabaseHandler oDBH = new DatabaseHandler();
                StringBuilder oSBQuery = new StringBuilder();

                DataSet ds = oDBH.FillData_SP("IsUserCreatedForTwitter", user_id, appConfigDID);

                if (Convert.ToInt32(ds.Tables[0].Rows[0][0]) >= 1)
                {

                    return true;
                }
                else
                {
                    return false;
                }

            }
            catch (Exception ex)
            {
                //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
                throw ex;
            }
        }
Пример #25
0
        public string GetNotifierDID(string PDID)
        {
            try
            {
                DatabaseHandler oDBH = new DatabaseHandler();

                DataSet ds = oDBH.FillData_SP("GetNotifierDID", PDID);

                //return

                if (ds.Tables[0].Rows.Count > 0)
                {
                    return ds.Tables[0].Rows[0]["DID"].ToString();
                }
                else
                {
                    return "";
                }
            }
            catch (Exception ex)
            {
                //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
                throw ex;
            }
        }
Пример #26
0
 public DataSet GetLocationDrillDown_Gender1(string Customer, string Appname, string Country, string Gender)
 {
     DataSet LocationDrillDown_Gender1 = new DataSet();
     oDBH = new DatabaseHandler();
     LocationDrillDown_Gender1 = oDBH.FillData_SP("Sp_LocationDrillDownGender", Customer, Appname, Country, Gender);
     return LocationDrillDown_Gender1;
 }
Пример #27
0
 public DataSet GetLevelsDrillDown_Actions(string Appname, int Level)
 {
     DataSet LevelsDrillDown_Actions = new DataSet();
     oDBH = new DatabaseHandler();
     LevelsDrillDown_Actions = oDBH.FillData_SP("Sp_LevelsDrillDown_Actions", Appname, Level);
     return LevelsDrillDown_Actions;
 }
Пример #28
0
        public string GetSiteIDForConfig(string ADID)
        {
            try
            {
                DatabaseHandler oDBH = new DatabaseHandler();

                DataSet ds = oDBH.FillData_SP("GetSiteIDForConfig", ADID);

                return ds.Tables[0].Rows[0]["SiteID"].ToString();
            }
            catch (Exception ex)
            {
                //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
                throw ex;
            }
        }
Пример #29
0
        public DataSet GetLocationDrillDown_Age(string Customer, string Appname, string Country)
        {
            //AnalyticsDataEnumsLocationAge oADE = new AnalyticsDataEnumsLocationAge();
            //List<string> oList = new List<string>();
            //DataSet dsNew = new DataSet();
            //oDBH = new DatabaseHandler();
            //dsNew = oDBH.FillData_SP("Sp_LocationDrillDown_Age", Customer, Appname,Country);

            //foreach (DataRow dr in dsNew.Tables[0].Rows)
            //{
            //    oADE.Gender1 = dr["Gender"].ToString();
            //    oADE.Age1 = dr["Age"].ToString();
            //    oADE.NotifierTypeCount1 = dr["NotifierTypeCount"].ToString();
            //    oList.Add(oADE.ToString());
            //}

            //return oList;
            DataSet LocationDrillDown_Age = new DataSet();
            oDBH = new DatabaseHandler();
            LocationDrillDown_Age = oDBH.FillData_SP("Sp_LocationDrillDown_Age", Customer, Appname, Country);
            return LocationDrillDown_Age;
        }
Пример #30
0
        public int GetLikeCount(string AppproductDID)
        {
            try
            {
                DatabaseHandler oDBH = new DatabaseHandler();
                StringBuilder oSBQuery = new StringBuilder();
                int intVisits = 0;

                DataSet ds = oDBH.FillData_SP("GetLikeCount", AppproductDID);

                if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
                {
                    intVisits = Convert.ToInt32(ds.Tables[0].Rows[0]["NoOfVisits"]);
                }

                return intVisits;
            }
            catch (Exception ex)
            {
                //Log4NetUtility.ErrorDebug(this.GetType().FullName, "Error in GetConfigData(string _AppId)", ex);
                throw ex;
            }
        }