/// <summary> /// 绑定应用类型 /// </summary> private void BindGroupType() { List <GroupTypeEntity> list = new GroupTypeBLL().QueryGroupType(); ListItem objItem = new ListItem("分类筛选", ""); this.dropGroupType.Items.Add(objItem); foreach (GroupTypeEntity item in list) { this.dropGroupType.Items.Add(new ListItem(item.TypeName, item.TypeID.ToString())); } }
private void BindData() { List <GroupTypeEntity> list = new List <GroupTypeEntity>(); if (SchemeID > 1) { list = new GroupTypeBLL().GetCategory(SchemeID); } else { list = new GroupTypeBLL().GetAllCategory(typeClass); } this.objRepeater.DataSource = list; this.objRepeater.DataBind(); }
/// <summary> /// 绑定应用类型 /// </summary> private void BindAppType() { List <GroupTypeEntity> list = new GroupTypeBLL().GetDataList(12); ListItem objItem = new ListItem("分类筛选", ""); this.AppType.Items.Add(objItem); foreach (GroupTypeEntity item in list) { if (item.TypeID == 1200) { continue; } else { this.AppType.Items.Add(new ListItem(item.TypeName, item.TypeID.ToString())); } } }
/// <summary> /// 绑定应用类型 /// </summary> private void BindAppType() { List <GroupTypeEntity> list = new GroupTypeBLL().GetDataList(this.AppClass.Convert <int>(11)); if (this.AppClass == "11") { this.IsNetGame.Enabled = false; } ListItem objItem = new ListItem("分类筛选", ""); this.AppType.Items.Add(objItem); foreach (GroupTypeEntity item in list) { if (item.TypeID == 1100 || item.TypeID == 1200) { continue; } else { this.AppType.Items.Add(new ListItem(item.TypeName, item.TypeID.ToString())); } } List <ChannelEntity> chList = new ChannelBLL().BindList(); cbChannel.DataSource = chList; cbChannel.DataTextField = "ChannelName"; cbChannel.DataValueField = "ChannelNo"; cbChannel.DataBind(); cbChannel2.DataSource = chList; cbChannel2.DataTextField = "ChannelName"; cbChannel2.DataValueField = "ChannelNo"; cbChannel2.DataBind(); }