//获取实体
        public cloud_systemparametertype QueryObject(cloud_systemparametertype model)
        {
            IList <cloud_systemparametertype> list = cloud_systemparametertypedal.getcloud_systemparametertypeList(model);

            if (list.Count > 0)
            {
                return(list[0]);
            }
            else
            {
                return(null);
            }
        }
        //查询List
        public IList <cloud_systemparametertype> getcloud_systemparametertypeList(cloud_systemparametertype model)
        {
            IList <cloud_systemparametertype> list = new List <cloud_systemparametertype>();

            try
            {
                list = cloud_systemparametertypedal.getcloud_systemparametertypeList(model);
            }
            catch
            {
                list = null;
            }
            return(list);
        }
        /// <summary>
        /// 返回总条数
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int GetRecordCount(cloud_systemparametertype model)
        {
            return(cloud_systemparametertypedal.GetRecordCount(model));

            #region  缓存用法
            //int totalItems = 0;
            //object obj = CacheHelper.GetCache("cloud_systemparametertypeBLL_GetRecordCount"); //key一定要设置的有规律不重复类名+方法名
            //if (obj != null)
            //{
            //    totalItems = (int)obj;

            //}
            //else
            //{
            //    totalItems = cloud_systemparametertypedal.GetRecordCount(model);
            //    CacheHelper.SetCacheAbsolute("cloud_systemparametertypeBLL_GetRecordCount", totalItems);//写入服务器缓存
            //}
            //return totalItems;
            #endregion
        }
        /// <summary>
        /// 获取DataTable列表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public DataTable getPageList(cloud_systemparametertype model)
        {
            return(cloud_systemparametertypedal.getPageList(model));


            #region  缓存用法
            //DataTable dt = null;
            //object obj = CacheHelper.GetCache("cloud_systemparametertypeBLL_getPageList"); //key一定要设置的有规律不重复类名+方法名
            //if (obj != null)
            //{
            //    dt = (DataTable)obj;

            //}
            //else
            //{
            //    dt = cloud_systemparametertypedal.getPageList(model);
            //    CacheHelper.SetCacheAbsolute("cloud_systemparametertypeBLL_getPageList", dt);//写入服务器缓存
            //}
            //return dt;
            #endregion
        }
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Update(cloud_systemparametertype model)
 {
     return(cloud_systemparametertypedal.Update(model));
 }
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Insert(cloud_systemparametertype model)
 {
     return(cloud_systemparametertypedal.Insert(model));
 }