コード例 #1
0
        public JsonResult GetGoodsList(string ywyId, string userId, string entId, string searchValue, string letter, string tags, string isKc, string CategoryId, int pageIndex, int pageSize)
        {
            ValetOrderModel <GoodsInfo> model = new ValetOrderModel <GoodsInfo>();

            try
            {
                if (string.IsNullOrEmpty(entId))
                {
                    entId = BaseConfiguration.EntId;
                }
                else if (ywyId == null || ywyId == "")
                {
                    model.Success = "002";
                    model.Message = "业务员Id获取失败";
                }
                else
                {
                    if (searchValue == null)
                    {
                        searchValue = "";
                    }
                    ///商品信息
                    ValetOrderDal dal = new ValetOrderDal();
                    model = dal.GetGoodsList(ywyId, userId, searchValue, letter, tags, isKc, CategoryId, pageIndex, pageSize, entId);
                }
            }
            catch (Exception ex)
            {
                LogQueue.Write(LogType.Error, "ValetOrder/GetGoodsList", ex.Message.ToString());
                model.Success = "002";
                model.Message = ex.Message.ToString();
            }
            return(Json(new { models = model }));
        }
コード例 #2
0
        /// <summary>
        /// 代客下单获取客户信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public JsonResult GetMemberList(string ywyId, string strWhere, int pageIndex, int pageSize)
        {
            ValetOrderModel <ValetOrder_MemberList> model = new ValetOrderModel <ValetOrder_MemberList>();

            try
            {
                if (string.IsNullOrEmpty(ywyId))
                {
                    model.Success = "002";
                    model.Message = "用户未登录,请先登录";
                }
                else
                {
                    ValetOrderDal dal = new ValetOrderDal();
                    model = dal.GetMemberList(ywyId, strWhere, pageIndex, pageSize);
                }
            }
            catch (Exception ex)
            {
                LogQueue.Write(LogType.Error, "ValetOrder/GetMemberList", ex.Message.ToString());
                model.Success = "002";
                model.Message = ex.Message.ToString();
            }
            return(Json(new { models = model }));
        }