Esempio n. 1
0
        private void buttonCaptionPanel1_Click(object sender, EventArgs e)
        {
            //存入日志
            LogSave.Messages("[usergroup]", LogIDType.UserLogID, "配置用户组权限,用户组名称:" + cboUserGroup.SelectedText);

            foreach (TreeNode node1 in treeView1.Nodes)
            {
                sql = sql + " exec insertUserGroupMenu1 '" + node1.Name + "'," + cboUserGroup.SelectedValue.ToString() + "," + Convert.ToByte(node1.Checked) + " ";
                if (node1.Nodes.Count > 0)
                {
                    getChangNodeItem(node1);
                }
            }


            if (mBLL.ExcuteSql(sql) >= 0)
            {
                MessageBox.Show("保存成功");
            }
            else
            {
                MessageBox.Show("保存失败");
            }
        }