/// <summary>
        ///
        /// </summary>
        public string GetVipExpandListData()
        {
            var    service = new VipExpandBLL(CurrentUserInfo);
            string content = string.Empty;

            string key = string.Empty;

            if (Request("VipID") != null && Request("VipID") != string.Empty)
            {
                key = Request("VipID").ToString().Trim();
            }

            int pageIndex = Utils.GetIntVal(FormatParamValue(Request("page"))) - 1;

            IList <VipExpandEntity> data;

            int maxRowCount   = PageSize;
            int startRowIndex = Utils.GetIntVal(Request("start"));

            VipExpandEntity queryInfo = new VipExpandEntity();

            queryInfo.VipID = key;
            data            = service.GetList(queryInfo, pageIndex, PageSize);
            int totalCount = service.GetListCount(queryInfo);

            content = string.Format("{{\"totalCount\":{1},\"topics\":{0}}}",
                                    data.ToJSON(),
                                    totalCount);

            return(content);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 车信息列表查询
        /// </summary>
        /// <param name="searchInfo"></param>
        /// <returns></returns>
        public VipExpandEntity SearchVipExpand(VipExpandEntity searchInfo)
        {
            VipExpandEntity         vipExpandInfo     = new VipExpandEntity();
            IList <VipExpandEntity> vipExpandInfoList = new List <VipExpandEntity>();

            vipExpandInfo.ICount = _currentDAO.SearchVipExpandCount(searchInfo);
            DataSet ds = _currentDAO.SearchVipExpandList(searchInfo);

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                vipExpandInfoList = DataTableToObject.ConvertToList <VipExpandEntity>(ds.Tables[0]);
            }
            vipExpandInfo.VipExpandInfoList = vipExpandInfoList;
            return(vipExpandInfo);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 列表获取
        /// </summary>
        /// <param name="Page">分页页码。从0开始</param>
        /// <param name="PageSize">每页的数量。未指定时默认为15</param>
        /// <returns></returns>
        public List <VipExpandEntity> GetList(VipExpandEntity entity, int Page, int PageSize)
        {
            if (PageSize <= 0)
            {
                PageSize = 15;
            }

            List <VipExpandEntity> list = new List <VipExpandEntity>();

            DataSet ds = _currentDAO.GetList(entity, Page, PageSize);

            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                list = DataTableToObject.ConvertToList <VipExpandEntity>(ds.Tables[0]);
            }

            return(list);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 根据车信息ID获取车信息
        /// </summary>
        public string GetVipExpandByVipExpandID()
        {
            var    service    = new VipExpandBLL(CurrentUserInfo);
            var    searchInfo = new VipExpandEntity();
            string content    = string.Empty;

            if (Request("VipExpandID") != "")
            {
                searchInfo.VipExpandID = FormatParamValue(Request("VipExpandID"));
            }

            int maxRowCount   = PageSize;
            int startRowIndex = Utils.GetIntVal(FormatParamValue(Request("start")));

            searchInfo.maxRowCount   = maxRowCount;
            searchInfo.startRowIndex = startRowIndex;
            var data = service.SearchVipExpand(searchInfo);

            content = string.Format("{{\"totalCount\":{1},\"topics\":{0}}}",
                                    data.VipExpandInfoList.ToJSON(),
                                    data.ICount);
            return(content);
        }
Ejemplo n.º 5
0
 public void Update(VipExpandEntity pEntity, bool pIsUpdateNullField, IDbTransaction pTran)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField, pTran);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param>
 public void Update(VipExpandEntity pEntity, IDbTransaction pTran)
 {
     Update(pEntity, true, pTran);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 在事务内创建一个新实例
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 /// <param name="pTran">事务实例,可为null,如果为null,则不使用事务来更新</param>
 public void Create(VipExpandEntity pEntity, IDbTransaction pTran)
 {
     _currentDAO.Create(pEntity, pTran);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 创建一个新实例
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Create(VipExpandEntity pEntity)
 {
     _currentDAO.Create(pEntity);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 分页根据实体条件查询实体
 /// </summary>
 /// <param name="pQueryEntity">以实体形式传入的参数</param>
 /// <param name="pOrderBys">排序组合</param>
 /// <returns>符合条件的实体集</returns>
 public PagedQueryResult <VipExpandEntity> PagedQueryByEntity(VipExpandEntity pQueryEntity, OrderBy[] pOrderBys, int pPageSize, int pCurrentPageIndex)
 {
     return(_currentDAO.PagedQueryByEntity(pQueryEntity, pOrderBys, pPageSize, pCurrentPageIndex));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// 根据实体条件查询实体
 /// </summary>
 /// <param name="pQueryEntity">以实体形式传入的参数</param>
 /// <param name="pOrderBys">排序组合</param>
 /// <returns>符合条件的实体集</returns>
 public VipExpandEntity[] QueryByEntity(VipExpandEntity pQueryEntity, OrderBy[] pOrderBys)
 {
     return(_currentDAO.QueryByEntity(pQueryEntity, pOrderBys));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="pEntity"></param>
 public void Delete(VipExpandEntity pEntity)
 {
     _currentDAO.Delete(pEntity);
 }
Ejemplo n.º 12
0
 public void Update(VipExpandEntity pEntity, bool pIsUpdateNullField)
 {
     _currentDAO.Update(pEntity, pIsUpdateNullField);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="pEntity">实体实例</param>
 public void Update(VipExpandEntity pEntity)
 {
     Update(pEntity, true);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// 列表数量获取
 /// </summary>
 public int GetListCount(VipExpandEntity entity)
 {
     return(_currentDAO.GetListCount(entity));
 }