Beispiel #1
0
        protected void btnSubmitAppartment_Click(object sender, EventArgs e)
        {
            DataTable Appartments = new DataTable();

            Appartments = PropertyData.SearchAppartment(
                GetPropertyType(),
                txtApptName.Text,
                PropertyData.GetAreaNameByID(int.Parse(ddArea.SelectedValue)),
                ddSizeUnit.SelectedValue,
                GetMinSize(),
                GetMaxSize(),
                GetMinPrice(),
                GetMaxPrice(),
                GetFloor(),
                GetRooms()
                );

            Session["SEARCH_TYPE"]   = "appartment";
            Session["SEARCH_RESULT"] = Appartments;
            Response.Redirect("Result.aspx");
        }
Beispiel #2
0
        protected void btnSubmitHousePortion_Click(object sender, EventArgs e)
        {
            DataTable Houses_Portion = new DataTable();

            Houses_Portion = PropertyData.SearchHouse_Portion(
                GetPropertyType(),
                PropertyData.GetAreaNameByID(int.Parse(ddArea.SelectedValue)),
                ddSizeUnit.SelectedValue,
                GetMinSize(),
                GetMaxSize(),
                GetMinPrice(),
                GetMaxPrice(),
                ddPosition.SelectedValue,
                GetFloor(),
                GetRooms()
                );

            Session["SEARCH_TYPE"]   = "house_portion";
            Session["SEARCH_RESULT"] = Houses_Portion;
            Response.Redirect("Result.aspx");
        }
Beispiel #3
0
        protected void btnSubmitPlot_Click(object sender, EventArgs e)
        {
            DataTable Plots = new DataTable();

            Plots = PropertyData.SearchPlot(
                PropertyData.GetAreaNameByID(int.Parse(ddArea.SelectedValue)),
                ddSizeUnit.SelectedValue,
                GetMinSize(),
                GetMaxSize(),
                GetMinPrice(),
                GetMaxPrice(),
                chkLeased.Checked
                );

            Session["SEARCH_TYPE"]   = "plot";
            Session["SEARCH_RESULT"] = Plots;
            Response.Redirect("Result.aspx");
            //Plot CurrentPlot = CreatePlotObject();
            //PropertyData.UploadAd_Plot(CurrentPlot);
            //UploadImages();
        }