Ejemplo n.º 1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            userDal.DeleteUserQuickDesktop(Session["UserID"].ToString());
            foreach (TreeNode tnRoot in this.sTreeModule.Nodes)
            {
                foreach (TreeNode tnSub in tnRoot.ChildNodes)
                {
                    if (tnSub.Checked)
                    {
                        userDal.InsertUserQuickDesktop(Session["UserID"].ToString(), tnSub.Value);
                    }
                }
            }

            JScript.Instance.ShowMessage(this, "设置成功!");
        }
        catch
        {
            JScript.Instance.ShowMessage(this, "设置失败,请与管理员联系!");
        }
    }