Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(HouseListFrom), Page);
            if (!IsPostBack)
            {
                pagerForm.Action = pagerForm.Action + "?NavTabId=" + Request.QueryString["NavTabId"];
                //FullDropListData(typeof(s_Organise), sfrmOrgID, "Name", "OrgID", null, null);

                PubFunction.FullDropListData(typeof(h_State), sfrmStateID, "Name", "StateID", "");
                sfrmStateID.Items[0].Text  = "全部";
                sfrmStateID.Items[0].Value = "0";

                PubFunction.FullDropListData(typeof(H_landlord), sfrmLandlordID, "Name", "LandlordID", "");
                PubFunction.FullDropListData(typeof(h_Property), sfrmPropertyID, "Name", "PropertyID", "");
                PubFunction.FullDropListData(typeof(h_Type), sfrmTypeCode, "Name", "TypeCode", "");
                //PubFunction.FullDropListData(typeof(h_Fitment), mysfrmFitmentID, "Name", "FitmentID", "");
                PubFunction.FullDropListData(typeof(h_Year), sfrmYearID, "Name", "YearID", "");
                PubFunction.FullDropListData(typeof(h_Taxes), sfrmTaxesID, "Name", "TaxesID", "");
                //PubFunction.FullDropListData(typeof(h_AssessState), sfrmAssessStateID, "Name", "AssessStateID", "");
                FullAreaDropListData(mysfrmAreaID, "请选择", "");
                sfrmStateID.SelectedValue = "2";
                yun_Company com = yun_Company.FindByID(TCode.YUN.yun_Company.CurrentID);
                if (com != null)
                {
                    sfrmSanjakID.Items.Add(new ListItem("", ""));
                    EntityList <s_Sanjak> ss = s_Sanjak.FindAll("select * from s_Sanjak where AreaID in (select AreaID from s_Area where pAreaID=" + com.CityID + ")");
                    foreach (s_Sanjak sa in ss)
                    {
                        sfrmSanjakID.Items.Add(new ListItem(sa.Name, sa.SanjakID.ToString()));
                    }
                }

                PubFunction.FullDropListData(typeof(h_Use), sfrmUseID, "Name", "UseID", "");
                PubFunction.FullDropListData(typeof(c_Visit), sfrmVisitID, "Name", "VisitID", "");
                PubFunction.FullDropListData(typeof(h_Faceto), sfrmFacetoID, "Name", "FacetoID", "");
            }
            if (Request.QueryString["type"] != null)
            {
                switch (Request.QueryString["type"].ToString())
                {
                case "hc": Form.Action = "House/HouseCheck.aspx?NavTabId=" + NavTabId; break;

                case "hl": Form.Action = "House/HouseRentList.aspx?NavTabId=" + NavTabId; break;

                case "zf": Form.Action = "House/HouseListZF.aspx?NavTabId=" + NavTabId; break;

                default: Form.Action = "House/HouseRentList.aspx?NavTabId=" + NavTabId; break;
                }
            }
        }
Beispiel #2
0
 protected override void OnInitComplete(EventArgs e)
 {
     base.OnInitComplete(e);
     //PubFunction.FullDropListData(typeof(h_Papers), PapersID, "Name", "PapersID", "");
     PubFunction.FullDropListData(typeof(h_PayServant), frmPayServantID, "Name", "PayServantID", "");
     PubFunction.FullDropListData(typeof(h_SeeHouse), frmSeeHouseID, "Name", "SeeHouseID", "");
     PubFunction.FullDropListData(typeof(h_Cause), frmSaleMotiveID, "Name", "SaleMotiveID", "");
     PubFunction.FullDropListData(typeof(h_NowState), frmNowStateID, "Name", "NowStateID", "");
     //PubFunction.FullDropListData(typeof(h_Business), BusinessID, "Name", "BusinessID", "");
     //PubFunction.FullDropListData(typeof(h_Ohter1), PayTypeID, "Name", "Ohter1ID", "");
     PubFunction.FullDropListData(typeof(h_Appliance), frmApplianceID, "Name", "ApplianceID", "");
     PubFunction.FullDropListData(typeof(h_Assort), frmAssortID, "Name", "AssortID", "");
     PubFunction.FullDropListData(typeof(h_EntrustType), frmEntrustTypeID, "Name", "EntrustTypeID", "");
 }
Beispiel #3
0
        protected void Page_Init(object sender, EventArgs e)
        {
            if (CheckRolePermission("分派", RangeType.所有))
            {
                FullCanViewOrgShopDropList(OrgSelF);
                FullCanViewOrgShopDropList(OrgSelMF);
            }
            else
            {
                FullCanViewOrgShopDropList(OrgSelF, "分派");
                FullCanViewOrgShopDropList(OrgSelMF, "分派");
            }

            PubFunction.FullDropListData(typeof(h_State), sfrmStateID, "Name", "StateID", "");
        }
Beispiel #4
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            if (!IsPostBack)
            {
                //hsc = s_SysParam.FindByParamCode("HouseStateColor");
                PubFunction.FullDropListData(typeof(h_State), ddlStateID, "Name", "StateID", "");

                List <s_Organise> Organises = s_Organise.FindAllChildsByParent(0).FindAll(x => x.aType != 1 && x.aType != 7);
                mysfrmOrgID.Items.Add(new ListItem("", ""));
                mysfrmOrgID_Emp.Items.Add(new ListItem("", ""));
                foreach (s_Organise Organise in Organises)
                {
                    mysfrmOrgID.Items.Add(new ListItem(Organise.TreeNodeName2 + "(" + Organise.BillCode + ")", Organise.OrgID.ToString()));
                    mysfrmOrgID_Emp.Items.Add(new ListItem(Organise.TreeNodeName2 + "(" + Organise.BillCode + ")", Organise.OrgID.ToString()));
                }
            }
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(HouseListFrom), Page);
            if (!IsPostBack)
            {
                pagerForm.Action = pagerForm.Action + "?NavTabId=" + Request.QueryString["NavTabId"];

                PubFunction.FullDropListData(typeof(h_State), sfrmStateID, "Name", "StateID", "");
                sfrmStateID.Items[0].Text  = "全部";
                sfrmStateID.Items[0].Value = "0";

                PubFunction.FullDropListData(typeof(h_Property), sfrmPropertyID, "Name", "PropertyID", "");
                PubFunction.FullDropListData(typeof(h_Type), sfrmTypeCode, "Name", "TypeCode", "");
                //产权年限
                PubFunction.FullDropListData(typeof(h_houseinfor_propertyYear), sfrmpropertyYear, "Name", "propertyYearID", "");

                FullDropListData(typeof(h_EntrustType), sfrmEntrustTypeID, "Name", "EntrustTypeID", "");
                FullAreaDropListData(mysfrmAreaID, "请选择", "");
                sfrmStateID.SelectedValue = "2";

                PubFunction.FullDropListData(typeof(h_Use), sfrmUseID, "Name", "UseID", "");
                PubFunction.FullDropListData(typeof(c_Visit), sfrmVisitID, "Name", "VisitID", "");
                PubFunction.FullDropListData(typeof(h_Faceto), sfrmFacetoID, "Name", "FacetoID", "");
            }
            if (Request.QueryString["type"] != null)
            {
                switch (Request.QueryString["type"].ToString())
                {
                case "hc": Form.Action = "House/HouseCheck.aspx?NavTabId=" + NavTabId; break;

                case "hl": Form.Action = "House/HouseList.aspx?NavTabId=" + NavTabId; break;

                case "zf": Form.Action = "House/HouseListZF.aspx?NavTabId=" + NavTabId; break;

                default: Form.Action = "House/HouseList.aspx?NavTabId=" + NavTabId; break;
                }
            }
        }
Beispiel #6
0
        /// <summary>
        /// 最初加载在Load之前 绑定页面值
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInitComplete(EventArgs e)
        {
            base.OnInitComplete(e);
            for (int i = -2; i < 100; i++)
            {
                frmbuild_floor.Items.Add(new ListItem(i.ToString(), i.ToString()));
                frmbuild_levels.Items.Add(new ListItem(i.ToString(), i.ToString()));
            }
            PubFunction.FullDropListData(typeof(c_Visit), frmVisitID, "Name", "VisitID", "");
            PubFunction.FullDropListData(typeof(h_PayServant), frmPayServantID, "Name", "PayServantID", "");
            PubFunction.FullDropListData(typeof(h_SeeHouse), frmSeeHouseID, "Name", "SeeHouseID", "");
            PubFunction.FullDropListData(typeof(h_Type), frmTypeCode, "Name", "TypeCode", "");
            PubFunction.FullDropListData(typeof(h_Property), frmPropertyID, "Name", "PropertyID", "");
            PubFunction.FullDropListData(typeof(h_NowState), frmNowStateID, "Name", "NowStateID", "");
            PubFunction.FullDropListData(typeof(h_Fitment), frmFitmentID, "Name", "FitmentID", "");
            PubFunction.FullDropListData(typeof(h_Faceto), frmFacetoID, "Name", "FacetoID", "");
            PubFunction.FullDropListData(typeof(h_Use), frmUseID, "Name", "UseID", "");
            PubFunction.FullDropListData(typeof(h_Year), frmYearID, "Name", "YearID", "");
            PubFunction.FullDropListData(typeof(H_landlord), frmLandlordID, "Name", "LandlordID", "");
            //房源类型
            PubFunction.FullDropListData(typeof(h_RentState), frmRentStateID, "Name", "RentStateID", "");
            //委托类型
            PubFunction.FullDropListData(typeof(h_EntrustType), frmEntrustTypeID, "Name", "EntrustTypeID", "");

            List <h_State> h_State_list = h_State.FindAll("select StateID,Name from h_State where name='委托中' or name='无效委托'");

            frmStateID.DataSource     = h_State_list;
            frmStateID.DataTextField  = "Name";
            frmStateID.DataValueField = "StateID";
            frmStateID.DataBind();
            //委托类别,判断如果不是信息部或者超级管理员,则不能修改委托类别
            if (Entity.HouseID == 0)
            {
                lblstate.Visible   = true;
                frmStateID.Visible = true;
            }
            //PubFunction.FullDropListData(typeof(h_Taxes), frmTaxesID, "Name", "TaxesID", "");
            PubFunction.FullDropListData(typeof(h_Appliance), frmApplianceID, "Name", "ApplianceID", "");
            PubFunction.FullDropListData(typeof(h_Assort), frmAssortID, "Name", "AssortID", "");
            PubFunction.FullDropListData(typeof(h_Cause), frmSaleMotiveID, "Name", "SaleMotiveID", "");
            //PubFunction.FullDropListData(typeof(s_Area), ddlArea, "Name", "AreaID", "");
            ////删除空行
            //ddlArea.Items.RemoveAt(0);
            ////删除江苏省
            //ddlArea.Items.RemoveAt(0);
            ////删除无锡市
            //ddlArea.Items.RemoveAt(0);
            //List<s_Sanjak> list_s_Sanjak = s_Sanjak.FindAll("select * from s_Sanjak where AreaID=" + ddlArea.SelectedValue);
            //ddlSanjakID.DataSource = list_s_Sanjak;
            //ddlSanjakID.DataTextField = "name";
            //ddlSanjakID.DataValueField = "SanjakID";
            //ddlSanjakID.DataBind();

            oa_NewClass on = oa_NewClass.FindWithCache("Name", "房源管理");

            if (on != null)
            {
                OAID = on.NewClassID.ToString();
            }
            else
            {
                OAID = "";
            }
        }
Beispiel #7
0
        /// <summary>
        /// 加载表单前赋值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected override void OnSetForm(object sender, EntityFormEventArgs e)
        {
            frmFollowUpTypeID.DataSource     = h_FollowUpType.FindAll("select FollowUpTypeID,Name from h_FollowUpType where FollowUpTypeID<9");
            frmFollowUpTypeID.DataTextField  = "name";
            frmFollowUpTypeID.DataValueField = "FollowUpTypeID";
            frmFollowUpTypeID.DataBind();
            frmFollowUpTypeID.Items.Insert(0, "");
            //PubFunction.FullDropListData(typeof(h_FollowUpType), frmFollowUpTypeID, "Name", "FollowUpTypeID");
            PubFunction.FullDropListData(typeof(h_FollowUpDic), frmFollowUpDicID, "Name", "LSH");

            DataSet ds = h_FollowUp.Meta.Query(string.Format(@"SELECT d.NAME, 
                                                                        h.shi_id 
                                                                FROM   h_houseinfor h 
                                                                        LEFT JOIN s_housedic d 
                                                                                ON d.housedicid = h.housedicid 
                                                                WHERE  h.houseid = {0} ",
                                                             Entity.HouseID));

            if (ds.Tables[0].Rows.Count > 0)
            {
                frmshi_id.Text       = ds.Tables[0].Rows[0]["shi_id"].ToString();
                frmHouseDicName.Text = ds.Tables[0].Rows[0]["Name"].ToString();
            }
            //Session["parms"] = Request.QueryString["HouseID"];
            houseid.Value = Request.QueryString["HouseID"];
            if (Request.QueryString["GJAtype"] != null)
            {
                switch (Request.QueryString["GJAtype"].ToString())
                {
                case "1": frmFollowUpText.Text = "看房时间:"; break;

                case "2": frmFollowUpText.Text = "房屋情况:"; break;

                case "3": frmFollowUpText.Text = "产证情况:"; break;

                case "4": frmFollowUpText.Text = "光线情况:"; break;

                case "5": frmFollowUpText.Text = "外墙:"; break;

                case "6": frmFollowUpText.Text = "带看人:"; break;

                case "7": frmFollowUpText.Text = "房产计税价:"; break;

                case "8": frmFollowUpText.Text = "婚姻状况:"; break;

                case "9": frmFollowUpText.Text = "年龄段:"; break;

                case "10": frmFollowUpText.Text = "同行名称:"; break;

                case "11": frmFollowUpText.Text = "性格特征:"; break;

                case "12": frmFollowUpText.Text = "特别爱好:"; break;

                case "13": frmFollowUpText.Text = "出售原因:"; break;

                case "14": frmFollowUpText.Text = "房源描述:"; break;

                case "15": frmFollowUpText.Text = "房东照片:"; break;

                case "16": frmFollowUpText.Text = "客户带看:"; break;

                case "17": frmFollowUpText.Text = "全景照片:"; break;

                case "18": frmFollowUpText.Text = "图片上传:"; break;

                case "19": frmFollowUpText.Text = "视频上传:"; break;

                case "20": frmFollowUpText.Text = "钥匙积分留言:"; break;
                }
                TR1.Visible = false;
                TR2.Visible = false;
                TR3.Visible = false;
            }
        }