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

            if (dt.Rows.Count > 0)
            {
                vo = b.ConvertObj(dt.Rows[0], new OfficeAccessoriesStockInVO()) as OfficeAccessoriesStockInVO;
            }
            return(vo);
        }
        public int UpdateInfo_Detail(int infoId, OfficeAccessoriesStockInVO 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);
        }
        public int Insert(OfficeAccessoriesStockInVO vo)
        {
            int lastInsertId = 0;

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

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

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