Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         M_Group Ginfo = Gll.GetByID(Mid);
         this.GroupName.Text = Ginfo.GroupName;
         this.GroupInfo.Text = Ginfo.Description.ToString();
         DataTable umodelDT = Mll.GetListUser();
         GroupModel.DataSource     = umodelDT;
         GroupModel.DataTextField  = "ModelName";
         GroupModel.DataValueField = "ModelID";
         GroupModel.DataBind();
         GroupModel.Items.Insert(0, new ListItem("不绑定模型", "0"));
         if (GroupModel.Items.Count > 0)
         {
             for (int i = 0; i < GroupModel.Items.Count; i++)
             {
                 if (Gll.IsExistModel(Ginfo.GroupID, DataConverter.CLng(GroupModel.Items[i].Value)))
                 {
                     GroupModel.Items[i].Selected = true;
                 }
                 else
                 {
                     GroupModel.Items[i].Selected = false;
                 }
             }
         }
     }
     Call.SetBreadCrumb(Master, "<li>后台管理</li><li><a href='GroupManage.aspx'>会员组管理</a></li><li>会员组设置</li>");
 }