コード例 #1
0
        //删除
        private void tsBtnDel_Click(object sender, EventArgs e)
        {
            int rowIndex = RowIndex(dtl);

            if (rowIndex != -1)
            {
                DialogResult dr = MessageBox.Show("确定要删除所选择的记录吗", this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
                if (dr == DialogResult.OK)
                {
                    string userid = gridVProGroup.GetDataRow(rowIndex)[0].ToString();

                    LoginUserManage.DeleteLoginUser(userid);

                    LoadData();
                }
            }
        }
コード例 #2
0
        //删除
        private void tsBtnDel_Click(object sender, EventArgs e)
        {
            int rowIndex = RowIndex(dtl);

            if (rowIndex != -1)
            {
                DialogResult dr = MessageBox.Show("确定要删除所选择的记录吗", this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
                if (dr == DialogResult.OK)
                {
                    string userid = gridVProGroup.GetDataRow(rowIndex)[0].ToString();

                    LoginUserManage.DeleteLoginUser(userid);

                    //写日志
                    SysLog.AddOperateLog(SysParams.UserName, "登陆用户删除", "删除", SysParams.UserName + "用户删除了登陆用户,用户ID:" + txtUserID.Text + ",用户名:" + txtUserName.Text);


                    LoadData();
                }
            }
        }