Esempio n. 1
0
        public string UpdateSale(int CategoryId, int SubCategoryId, string title, string Features, string address, string contactNo, string description, string countryID, string StateID, string cityID, string zipcode, float amount, int id)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                PropSales proSale = new PropSales();
                proSale.AssociateID = Convert.ToInt16(Session["associate"]);
                proSale.CategoryID  = CategoryId;
                proSale.Subcategory = SubCategoryId;
                proSale.Title       = title;
                proSale.Features    = Features;
                proSale.Address     = address;
                proSale.ContactNo   = contactNo;
                proSale.Description = description;
                proSale.CountryID   = countryID;
                proSale.StateID     = StateID;
                proSale.CityID      = cityID;
                //proSale.IsfeaturedID = isFeatured;
                proSale.Zipcode = zipcode;
                proSale.Amount  = amount;
                proSale.ID      = id;
                BllSale objSale = new BllSale();
                str = objSale.RecordupdateSale(proSale, Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 2
0
        public string SelectAllAdvertisement()
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.SelectAllAdvertisements(Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 3
0
        public string DeleteCustomerRecords(int ID)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.DeleteInterestedRecord(Session["associate"].ToString(), ID);
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 4
0
        public string SelectAdvertisement(int Jobtype)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.RecordSelect(Session["associate"].ToString(), Jobtype);
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 5
0
        public string CountTotalVisitorsSales(int jobtype)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.TotalInterestedConsumersSales(Session["associate"].ToString(), jobtype);
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 6
0
        public string CountPurchasedZipcode()
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale obj = new BllSale();
                str = obj.AssociateZipcodeCount(Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 7
0
        public string CountAssociateCategories()
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.AssociateCategoriesCount(Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 8
0
        public string GetVisitorsInfoServices()
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                BllSale objSale = new BllSale();
                str = objSale.GetInterestedConsumersInfoServices(Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 9
0
        public string Blockadvertisements(int ID, int activeV)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                PropSales objProperty = new PropSales();
                objProperty.Subcategory = ID;
                BllSale ObjLeadStatus = new BllSale();
                str = ObjLeadStatus.BlockedRecords(objProperty, Session["associate"].ToString(), activeV);
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 10
0
        public string UpdatePostAdvertisementsCost(int advtID, float amount)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                PropSales objProperty = new PropSales();
                objProperty.ID = advtID;
                BllSale objSale = new BllSale();
                str = objSale.UpdatePostAdvertisementsCost(Session["associate"].ToString(), advtID, amount);
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 11
0
        public string DeleteDataFromadvertisement(int advtID)
        {
            string str = string.Empty;

            if (Session["associate"].ToString() != "" || Session["associate"].ToString() != null)
            {
                PropSales objProperty = new PropSales();
                objProperty.ID = advtID;
                BllSale objSale = new BllSale();
                str = objSale.RecordDelete(objProperty, Session["associate"].ToString());
                return(str);
            }
            else
            {
                return("Error in Authentication");
            }
        }
Esempio n. 12
0
        public void ProcessRequest(HttpContext context)
        {
            try
            {
                context.Response.ContentType = "text/plain";
                if (context.Request.Files.Count > 0)
                {
                    string             assId      = string.Empty;
                    string             _mainImg   = string.Empty;
                    string             _firstImg  = string.Empty;
                    string             _secondImg = string.Empty;
                    string             _thirdImg  = string.Empty;
                    HttpFileCollection files      = context.Request.Files;
                    for (int i = 0; i < files.Count; i++)
                    {
                        HttpPostedFile file = files[i];
                        string         fname;

                        string m = string.Empty;
                        if (HttpContext.Current.Request.Browser.Browser.ToUpper() == "IE" || HttpContext.Current.Request.Browser.Browser.ToUpper() == "INTERNETEXPLORER")
                        {
                            string[] testfiles = file.FileName.Split(new char[] { '\\' });
                            fname = testfiles[testfiles.Length - 1];
                        }
                        else
                        {
                            fname = file.FileName;
                            assId = fname;
                        }

                        fname = Path.Combine(context.Server.MapPath("Adv_img/"), fname + "main" + ".png");
                        file.SaveAs(fname);
                        _mainImg = assId + "main" + ".png";
                    }
                    BllSale objSale = new BllSale();
                    string  aa      = context.Session["associate"].ToString();
                    objSale.UpdateSingleImage(context.Session["associate"].ToString(), "@advMainImage", _mainImg, Convert.ToInt32(assId), "Updatefimg");
                }
                context.Response.Write("");
            }
            catch { }
        }