Esempio n. 1
0
        public InterviewEvaluationDetailVO GetByID(int id)
        {
            InterviewEvaluationDetailVO vo = new InterviewEvaluationDetailVO();
            DataTable dt = Select("ID=" + id + "");

            if (dt.Rows.Count > 0)
            {
                vo = b.ConvertObj(dt.Rows[0], new InterviewEvaluationDetailVO()) as InterviewEvaluationDetailVO;
            }
            return(vo);
        }
Esempio n. 2
0
        public int Insert(InterviewEvaluationDetailVO vo)
        {
            int lastInsertId = 0;

            try
            {
                lastInsertId = b.Insert("Interview_Evaluation_Detail", b.ConvertColName(vo), b.ConvertValueList(vo));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(lastInsertId);
        }
Esempio n. 3
0
        public int Create(InterviewEvaluationDetailVO vo)
        {
            int id;

            if (!dao.isExist(vo.Id.ToString()))
            {
                id = dao.Insert(vo);
            }
            else
            {
                id = dao.Update(vo);
            }
            return(id);
        }
Esempio n. 4
0
        public int Update(InterviewEvaluationDetailVO vo)
        {
            int interviewDetailID = 0;

            try
            {
                b.Update("Interview_Evaluation_Detail", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo));
                interviewDetailID = vo.Id;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(interviewDetailID);
        }