private void btnDelete_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 1)
            {
                if (MessageBox.Show("确定要删除选中的行?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    if (!m_personnelServer.DeleteCardIDWorkIDMapping(dataGridView1.CurrentRow.Cells["打卡号"].Value.ToString(),
                                                                     dataGridView1.CurrentRow.Cells["员工工号"].Value.ToString(), out error))
                    {
                        MessageDialog.ShowPromptMessage(error);
                        return;
                    }
                }
            }
            else
            {
                MessageDialog.ShowPromptMessage("请选择需要删除的数据行!");
            }

            RefreshDataGridView();
        }