public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            string action = context.Request.Params["action"];

            try
            {
                DriveMgr.Model.User userFromCookie = DriveMgr.Common.UserHelper.GetUser(context);   //获取cookie里的用户对象
                userOperateLog          = new Model.UserOperateLog();
                userOperateLog.UserIp   = context.Request.UserHostAddress;
                userOperateLog.UserName = userFromCookie.UserId;
                switch (action)
                {
                case "search":
                    SearchEnterStoreHouseDetails(context);
                    break;

                case "searchEnterStoreHouseDetails":
                    SearchEnterDetailsByID(context);
                    break;

                case "delete":
                    DelEnterStoreHouseDetails(userFromCookie, context);
                    break;

                case "getEnterStoreHouseDT":
                    EnterStoreHouseBLL enterStoreHouseBLL = new EnterStoreHouseBLL();
                    context.Response.Write(enterStoreHouseBLL.GetEnterStoreHouseDT());
                    break;

                case "getGoodsCategoryDT":
                    GoodsCategoryBLL goodsCategoryBLL = new GoodsCategoryBLL();
                    context.Response.Write(goodsCategoryBLL.GetGoodsCategoryDT());
                    break;

                case "getGoodsDT":
                    GoodsBLL goodsBLL = new GoodsBLL();
                    context.Response.Write(goodsBLL.GetGoodsDT());
                    break;

                case "add":
                    AddEnterStoreHouseDetails(userFromCookie, context);
                    break;

                default:
                    context.Response.Write("{\"msg\":\"参数错误!\",\"success\":false}");
                    break;
                }
            }
            catch (Exception ex)
            {
                context.Response.Write("{\"msg\":\"" + DriveMgr.Common.JsonHelper.StringFilter(ex.Message) + "\",\"success\":false}");
                userOperateLog.OperateInfo = "用户功能异常";
                userOperateLog.IfSuccess   = false;
                userOperateLog.Description = DriveMgr.Common.JsonHelper.StringFilter(ex.Message);
                DriveMgr.BLL.UserOperateLog.InsertOperateInfo(userOperateLog);
            }
        }