Esempio n. 1
0
 /// <summary>
 /// 修改分组名
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnUpdateGroup_Click(object sender, EventArgs e)
 {
     if (lbGroup.SelectedIndex >= 0)
     {
         string       userName     = lbPublicAccount.SelectedValue;
         int          groupId      = int.Parse(lbGroup.SelectedValue);
         ErrorMessage errorMessage = UserManagement.ChangeGroupName(userName, groupId, txtGroupName.Text);
         ltrMessage.Text = string.Format("修改分组名{0}。{1}",
                                         errorMessage.IsSuccess ? "成功" : "失败",
                                         errorMessage.IsSuccess ? "" : errorMessage.ToString());
     }
 }