コード例 #1
0
        //获取实体
        public cloud_crmandsupportorder QueryObject(cloud_crmandsupportorder model)
        {
            IList <cloud_crmandsupportorder> list = cloud_crmandsupportorderdal.getcloud_crmandsupportorderList(model);

            if (list.Count > 0)
            {
                return(list[0]);
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
        //查询List
        public IList <cloud_crmandsupportorder> getcloud_crmandsupportorderList(cloud_crmandsupportorder model)
        {
            IList <cloud_crmandsupportorder> list = new List <cloud_crmandsupportorder>();

            try
            {
                list = cloud_crmandsupportorderdal.getcloud_crmandsupportorderList(model);
            }
            catch
            {
                list = null;
            }
            return(list);
        }
コード例 #3
0
        /// <summary>
        /// 返回总条数
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int GetRecordCount(cloud_crmandsupportorder model)
        {
            return(cloud_crmandsupportorderdal.GetRecordCount(model));

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

            //}
            //else
            //{
            //    totalItems = cloud_crmandsupportorderdal.GetRecordCount(model);
            //    CacheHelper.SetCacheAbsolute("cloud_crmandsupportorderBLL_GetRecordCount", totalItems);//写入服务器缓存
            //}
            //return totalItems;
            #endregion
        }
コード例 #4
0
        /// <summary>
        /// 获取DataTable列表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public DataTable getPageList(cloud_crmandsupportorder model)
        {
            return(cloud_crmandsupportorderdal.getPageList(model));


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

            //}
            //else
            //{
            //    dt = cloud_crmandsupportorderdal.getPageList(model);
            //    CacheHelper.SetCacheAbsolute("cloud_crmandsupportorderBLL_getPageList", dt);//写入服务器缓存
            //}
            //return dt;
            #endregion
        }
コード例 #5
0
 /// <summary>
 /// 按照天统计
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public DataTable getdaysList(cloud_crmandsupportorder model)
 {
     return(cloud_crmandsupportorderdal.getdaysList(model));
 }
コード例 #6
0
 public bool ManUpdateorder(cloud_crmandsupportorder model)
 {
     return(cloud_crmandsupportorderdal.ManUpdateorder(model));
 }
コード例 #7
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Update(cloud_crmandsupportorder model)
 {
     return(cloud_crmandsupportorderdal.Update(model));
 }
コード例 #8
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Insert(cloud_crmandsupportorder model)
 {
     return(cloud_crmandsupportorderdal.Insert(model));
 }