示例#1
0
        private void TreeBind()
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            //全景图
            BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama();
            DataTable          pdt  = pBll.GetList(" wid=" + weixin.id).Tables[0];

            this.ddlPanorama.Items.Clear();
            this.ddlPanorama.Items.Add(new ListItem("请选择全景相册...", ""));
            foreach (DataRow dr in pdt.Rows)
            {
                string Id    = dr["id"].ToString();
                string Title = dr["jdname"].ToString().Trim();
                this.ddlPanorama.Items.Add(new ListItem(Title, Id));
            }
            //子楼盘
            BLL.wx_fc_sonfloor sBll = new BLL.wx_fc_sonfloor();
            DataTable          sdt  = sBll.GetList(" wid=" + weixin.id + " and fid=" + fid).Tables[0];

            this.ddlSonfloor.Items.Clear();
            this.ddlSonfloor.Items.Add(new ListItem("请选择子楼盘...", ""));
            foreach (DataRow dr in sdt.Rows)
            {
                string Id    = dr["id"].ToString();
                string Title = dr["name"].ToString().Trim();
                this.ddlSonfloor.Items.Add(new ListItem(Title, Id));
            }
        }
示例#2
0
        private void RptBind(string _strWhere, string _orderby)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            _strWhere        = "wId=" + weixin.id + " " + _strWhere;
            _strWhere       += " and fid=" + fid;
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;

            this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("zlpMgr.aspx", "keywords={0}&page={1}&id={2}", this.keywords, "__id__", this.fid.ToString());

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }