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

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

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

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

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