/// <summary> /// 提交离职 /// </summary> /// <param name="dimission"></param> /// <returns></returns> public int Dimission(Dimission dimission) { int result = FinanceDal.Dimission(dimission); if (result > 0) { Managerdal.DeleteEmp(dimission.EmpsId); } return(result); }
/// <summary> /// 删除员工 /// </summary> /// <param name="id"></param> /// <returns></returns> public int DeleteEmp(int id) { return(dal.DeleteEmp(id)); }