Esempio n. 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     PersonnelSys.Form_EmployeeAdd add = new Form_EmployeeAdd();
     add.canshu = "empadd";
     if (add.ShowDialog(this) == DialogResult.OK)
     {
         this.InitDbgEmp();//初始化员工信息
     }
 }
Esempio n. 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dbgEmp.Rows.Count == 0)
     {
         return;
     }
     else
     {
         DataTable dt = IsNull();
         if (dat != null && dat.Rows.Count != 0)
         {
             PersonnelSys.Form_EmployeeAdd add = new Form_EmployeeAdd();
             add.id = int.Parse(dbgEmp.SelectedRows[0].Cells[0].Value.ToString());
             if (add.ShowDialog(this) == DialogResult.OK)
             {
                 this.InitDbgEmp();
             }
         }
     }
 }