private void dataGridView_examiner_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { Form_ExaminerInfo_appendModify form_ExaminerInfo_appendModify = new Form_ExaminerInfo_appendModify(); form_ExaminerInfo_appendModify.isAppend = false; form_ExaminerInfo_appendModify.Text = "考试员信息修改"; form_ExaminerInfo_appendModify.idNo = dataGridView_examiner.Rows[e.RowIndex].Cells["身份证明号码"].Value.ToString(); form_ExaminerInfo_appendModify.idTypeName = dataGridView_examiner.Rows[e.RowIndex].Cells["身份证明类型"].Value.ToString(); form_ExaminerInfo_appendModify.examinerName = dataGridView_examiner.Rows[e.RowIndex].Cells["姓名"].Value.ToString(); form_ExaminerInfo_appendModify.examinerGender = dataGridView_examiner.Rows[e.RowIndex].Cells["性别"].Value.ToString(); form_ExaminerInfo_appendModify.birth = dataGridView_examiner.Rows[e.RowIndex].Cells["出生日期"].Value.ToString(); form_ExaminerInfo_appendModify.issuingAuthority = dataGridView_examiner.Rows[e.RowIndex].Cells["所属发证机关"].Value.ToString(); form_ExaminerInfo_appendModify.issuingDate = dataGridView_examiner.Rows[e.RowIndex].Cells["发证日期"].Value.ToString(); form_ExaminerInfo_appendModify.expireDate = dataGridView_examiner.Rows[e.RowIndex].Cells["有效截止日期"].Value.ToString(); form_ExaminerInfo_appendModify.office = dataGridView_examiner.Rows[e.RowIndex].Cells["工作单位"].Value.ToString(); form_ExaminerInfo_appendModify.operatorName = dataGridView_examiner.Rows[e.RowIndex].Cells["经办人"].Value.ToString(); form_ExaminerInfo_appendModify.issuingOffice = dataGridView_examiner.Rows[e.RowIndex].Cells["考试员证发证单位"].Value.ToString(); if (form_ExaminerInfo_appendModify.ShowDialog() == DialogResult.OK) { dataGridView_examiner.DataSource = mDBM.Select(examinerViewSQL).Tables[0]; } } }
private void btn_examiner_append_Click(object sender, EventArgs e) { Form_ExaminerInfo_appendModify form_ExaminerInfo_appendModify = new Form_ExaminerInfo_appendModify(); form_ExaminerInfo_appendModify.isAppend = true; form_ExaminerInfo_appendModify.Text = "考试员信息添加"; if (form_ExaminerInfo_appendModify.ShowDialog() == DialogResult.OK) { dataGridView_examiner.DataSource = mDBM.Select(examinerViewSQL).Tables[0]; } }