private void TreeBind() { Model.wx_userweixin weixin = GetWeiXinCode(); BLL.wx_fc_yySysset bll = new BLL.wx_fc_yySysset(); BLL.wx_fc_panorama pBll = new BLL.wx_fc_panorama(); DataTable pDt = pBll.GetList(" wid=" + weixin.id).Tables[0]; this.ddlQjt.Items.Clear(); this.ddlQjt.Items.Add(new ListItem("请选择全景图...", "")); foreach (DataRow dr in pDt.Rows) { string Id = dr["id"].ToString(); string Title = dr["jdname"].ToString().Trim(); this.ddlQjt.Items.Add(new ListItem(Title, Id)); } DataTable dt = bll.GetList(" wid=" + weixin.id).Tables[0]; this.ddlYybm.Items.Clear(); this.ddlYybm.Items.Add(new ListItem("请选择预约版面...", "")); foreach (DataRow dr in dt.Rows) { string Id = dr["id"].ToString(); string Title = dr["address"].ToString().Trim(); this.ddlYybm.Items.Add(new ListItem(Title, Id)); } }
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)); } }
private void RptBind(string _strWhere, string _orderby) { Model.wx_userweixin weixin = GetWeiXinCode(); _strWhere = "wId=" + weixin.id + " " + _strWhere; 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("qjtMgr.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); }