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

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

            try
            {
                lastInsertId = b.Insert("Asset_In_Info", b.ConvertColName(vo), b.ConvertValueList(vo));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(lastInsertId);
        }
        public int UpdateInfo_Detail(int infoId, AssetInInfoVO 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 Create(AssetInInfoVO vo)
        {
            int id;

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

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