예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// 删除员工
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public int DeleteEmp(int id)
 {
     return(dal.DeleteEmp(id));
 }