示例#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));
            }
        }