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