예제 #1
0
        public EmployeePositionChangeVO GetByID(int id)
        {
            EmployeePositionChangeVO vo = new EmployeePositionChangeVO();
            DataTable dt = Select("ID=" + id + "");

            if (dt.Rows.Count > 0)
            {
                vo = b.ConvertObj(dt.Rows[0], new EmployeePositionChangeVO()) as EmployeePositionChangeVO;
            }
            return(vo);
        }
        public int UpdateInfo_Detail(int infoId, EmployeePositionChangeVO vo, List <object> detalVoList, List <String> queryList, List <String> deleteList)
        {
            int id = 0;

            try
            {
                id = dao.UpdateInfo_Detail(infoId, vo, detalVoList, queryList, deleteList);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(id);
        }
예제 #3
0
        public int Insert(EmployeePositionChangeVO vo)
        {
            int lastInsertId = 0;

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

            if (!dao.isExist(vo.Id.ToString()))
            {
                id = dao.Insert(vo);
            }
            else
            {
                id = dao.Update(vo);
            }
            return(id);
        }
예제 #5
0
        public int Update(EmployeePositionChangeVO vo)
        {
            int ID = 0;

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