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

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

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

            if (!dao.isExist(vo.Id.ToString()))
            {
                id = dao.Insert(vo);
            }
            else
            {
                id = dao.Update(vo);
            }
            return(id);
        }
Ejemplo n.º 4
0
        public int Update(EmployeeWorkingExperienceVO vo)
        {
            int empWorkExpID = 0;

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