public EmployeeQualificationVO GetByID(int id) { EmployeeQualificationVO vo = new EmployeeQualificationVO(); DataTable dt = Select("ID=" + id + ""); if (dt.Rows.Count > 0) { vo = b.ConvertObj(dt.Rows[0], new EmployeeQualificationVO()) as EmployeeQualificationVO; } return(vo); }
public int Create(EmployeeQualificationVO vo) { int id; if (!dao.isExist(vo.Id.ToString())) { id = dao.Insert(vo); } else { id = dao.Update(vo); } return(id); }
public int Insert(EmployeeQualificationVO vo) { int lastInsertId = 0; try { lastInsertId = b.Insert("Employee_Qualification", b.ConvertColName(vo), b.ConvertValueList(vo)); } catch (Exception ex) { throw ex; } return(lastInsertId); }
public int Update(EmployeeQualificationVO vo) { int empQualifyID = 0; try { b.Update("Employee_Qualification", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo)); empQualifyID = vo.Id; } catch (Exception ex) { throw ex; } return(empQualifyID); }