protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            string str;

            foreach (RepeaterItem item in this.RptModelList2.Items)
            {
                Repeater    repeater = item.FindControl("RptFieldList") as Repeater;
                HiddenField field    = item.FindControl("HdnModelId") as HiddenField;
                if (repeater != null)
                {
                    foreach (RepeaterItem item2 in repeater.Items)
                    {
                        CheckBox    box    = item2.FindControl("ChkFieldPurview") as CheckBox;
                        HiddenField field2 = item2.FindControl("HdnFieldName") as HiddenField;
                        if (box.Checked)
                        {
                            StringHelper.AppendString(this.m_modelIdList, field.Value);
                            StringHelper.AppendString(this.m_fieldNameList, field2.Value);
                        }
                    }
                    continue;
                }
            }
            if (((str = this.m_PermissionsType) != null) && (str == "User"))
            {
                UserPermissions.DeleteFieldPermissions(this.m_RoleId, this.m_IdType);
                UserPermissions.AddFieldPermissions(this.m_RoleId, this.m_modelIdList.ToString(), this.m_fieldNameList.ToString(), OperateCode.ContentFieldInput, this.m_IdType);
            }
            this.Page.ClientScript.RegisterClientScriptBlock(base.GetType(), "windowsclose", "<script type='text/javascript'>window.close();</script>");
        }
 private void AddContentFieldManagePermission()
 {
     if (!UserPermissions.AddFieldPermissions(this.m_GroupId, this.m_modelIdList.ToString(), this.m_fieldNameList.ToString(), OperateCode.ContentFieldInput, this.IdType))
     {
         this.m_strMsg.Append("<li>模型字段权限添加失败!</li>");
     }
 }