Beispiel #1
0
        private void 新增ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EmployeesEdit frmEmployeesEdit = new EmployeesEdit("");

            if (frmEmployeesEdit.ShowDialog() == DialogResult.OK)
            {
                EmployeesList_Load(null, null);
            }
        }
Beispiel #2
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string        employeesID      = Convert.ToString(this.dgvEmployees.SelectedRows[0].Cells["EmployeesID"].Value);
            EmployeesEdit frmEmployeesEdit = new EmployeesEdit(employeesID);

            if (frmEmployeesEdit.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("修改排班信息成功!");
                EmployeesList_Load(null, null);
            }
        }