예제 #1
0
        protected void BindAllGroup()
        {
            Model.wx_userweixin        weixin = GetWeiXinCode();
            BLL.wx_crm_group           gBll   = new BLL.wx_crm_group();
            IList <Model.wx_crm_group> gList  = gBll.GetModelList("wid=" + weixin.id);

            rptList.DataSource = gList;
            rptList.DataBind();
        }
예제 #2
0
        private void GroupBind()
        {
            BLL.wx_crm_group           gBll      = new BLL.wx_crm_group();
            Model.wx_userweixin        weixin    = GetWeiXinCode();
            IList <Model.wx_crm_group> grouplist = gBll.GetModelList("wid=" + weixin.id);

            this.ddlGroupId.Items.Clear();
            this.ddlGroupId.Items.Add(new ListItem("所有分组", "-1"));
            if (grouplist == null)
            {
                return;
            }
            foreach (Model.wx_crm_group g in grouplist)
            {
                string iName = g.name + "(" + g.count.Value.ToString() + ")";
                this.ddlGroupId.Items.Add(new ListItem(iName, g.id.ToString()));
            }
        }