private void 添加toolStripLabel1_Click(object sender, EventArgs e)
{
frmAddAttendance addattendance = new frmAddAttendance();//创建人员考勤窗体对象
addattendance.ShowDialog();//显示模式窗体
}
-----------------------------------
private void 删除toolStripLabel3_Click(object sender, EventArgs e)
{
if (dataGridView1.SelectedCells.Count > 0)
{
string id = dataGridView1.SelectedCells[0].Value.ToString();//得到ID信息
string deletesql = "delete from tb_attend where employeeID='" + id + "'";//创建SQL字符串
if (operate.OperateData(deletesql) > 0)
{
MessageBox.Show("删除成功", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else
{
MessageBox.Show("请选择要删除的信息", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
return;//退出事件
} }
就是整个toolstrip 里点击都没反应 难道不是上面的错误????
{
frmAddAttendance addattendance = new frmAddAttendance();//创建人员考勤窗体对象
addattendance.ShowDialog();//显示模式窗体
}
-----------------------------------
private void 删除toolStripLabel3_Click(object sender, EventArgs e)
{
if (dataGridView1.SelectedCells.Count > 0)
{
string id = dataGridView1.SelectedCells[0].Value.ToString();//得到ID信息
string deletesql = "delete from tb_attend where employeeID='" + id + "'";//创建SQL字符串
if (operate.OperateData(deletesql) > 0)
{
MessageBox.Show("删除成功", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else
{
MessageBox.Show("请选择要删除的信息", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
return;//退出事件
} }
就是整个toolstrip 里点击都没反应 难道不是上面的错误????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货