Example #1
0
        /// <summary>
        /// 点选终端分页查询控件
        /// </summary>
        /// <param name="pContext"></param>
        /// <returns></returns>
        private PageResultEntity GetStoreSelectPageData(HttpContext pContext)
        {
            StoreSelectByClientUserBLL b = new StoreSelectByClientUserBLL(new SessionManager().CurrentUserLoginInfo, "Store");
            string pSearch = pContext.Request["pSearch"];
            List <DefindControlEntity> l = new List <DefindControlEntity>();

            if (!string.IsNullOrEmpty(pSearch))
            {
                l = pSearch.DeserializeJSONTo <List <DefindControlEntity> >();
            }

            int?pPageIndex = null;
            int?pPageSize  = null;

            if (!string.IsNullOrEmpty(pContext.Request["pPageIndex"]))
            {
                pPageIndex = Convert.ToInt32(pContext.Request["pPageIndex"]);
            }
            if (!string.IsNullOrEmpty(pContext.Request["pPageSize"]))
            {
                pPageSize = Convert.ToInt32(pContext.Request["pPageSize"]);
            }


            string pKeyValue  = pContext.Request["pKeyValue"];
            string pUserArray = pContext.Request["pUserArray"];

            return(b.GetSelectPageData(l, pPageSize, pPageIndex, pKeyValue, pUserArray));
        }
Example #2
0
        /// <summary>
        /// 用于点选控件编辑显示的值
        /// </summary>
        /// <param name="pContext"></param>
        /// <returns></returns>
        private DataTable GetSelectData(HttpContext pContext)
        {
            StoreSelectByClientUserBLL b = new StoreSelectByClientUserBLL(new SessionManager().CurrentUserLoginInfo, "Store");
            string pKeyValue             = pContext.Request["pKeyValue"];

            return(b.GetSelectData(pKeyValue));
        }
Example #3
0
        /// <summary>
        /// 获取终端列表表头定义
        /// </summary>
        /// <param name="pContext"></param>
        /// <returns></returns>
        private List <GridColumnEntity> GetStoreGridColumns(HttpContext pContext)
        {
            StoreSelectByClientUserBLL b = new StoreSelectByClientUserBLL(new SessionManager().CurrentUserLoginInfo, "Store");

            return(b.GetGridColumns());
        }