Ejemplo n.º 1
0
        private void dgvMain_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                //MessageBox.Show(e.RowIndex.ToString() + "-" + e.ColumnIndex);

                string empID     = dgvMain.Rows[e.RowIndex].Cells["EmpID"].Value.ToString();
                string empName   = dgvMain.Rows[e.RowIndex].Cells["姓名"].Value.ToString();
                string beginTime = dgvMain.Rows[e.RowIndex].Cells["巡检时间"].Value.ToString();
                //MessageBox.Show(empNo);

                FormHisPassInfo frm = new FormHisPassInfo(empID, empName, beginTime);
                frm.ShowDialog();
                frm.Dispose();
            }
        }
Ejemplo n.º 2
0
        private void dgvMain_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                //MessageBox.Show(e.RowIndex.ToString() + "-" + e.ColumnIndex);

                string empID = dgvMain.Rows[e.RowIndex].Cells["EmpID"].Value.ToString();
                string empName = dgvMain.Rows[e.RowIndex].Cells["姓名"].Value.ToString();
                string beginTime = dgvMain.Rows[e.RowIndex].Cells["巡检时间"].Value.ToString();
                //MessageBox.Show(empNo);

                FormHisPassInfo frm = new FormHisPassInfo(empID, empName, beginTime);
                frm.ShowDialog();
                frm.Dispose();
                
            }
        }