public EmployeeWorkHistoryVO GetByID(int id)
        {
            EmployeeWorkHistoryVO vo = new EmployeeWorkHistoryVO();
            DataTable             dt = Select("ID=" + id + "");

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

            try
            {
                lastInsertId = b.Insert("Employee_WorkHistory", b.ConvertColName(vo), b.ConvertValueList(vo));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(lastInsertId);
        }
        public int Create(EmployeeWorkHistoryVO vo)
        {
            int id;

            if (!dao.isExist(vo.Id.ToString()))
            {
                id = dao.Insert(vo);
            }
            else
            {
                id = dao.Update(vo);
            }
            return(id);
        }
        public int Update(EmployeeWorkHistoryVO vo)
        {
            int empWorkHisID = 0;

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