/// <summary> /// 根据仓库ID获取仓库信息 /// </summary> public string GetWarehouseInfoById() { var posService = new PosService(CurrentUserInfo); WarehouseInfo warehouse = new WarehouseInfo(); string content = string.Empty; string key = string.Empty; if (Request("warehouse_id") != null && Request("warehouse_id") != string.Empty) { key = Request("warehouse_id").ToString().Trim(); } warehouse = posService.GetWarehouseByID(CurrentUserInfo, key); var jsonData = new JsonData(); jsonData.totalCount = warehouse == null ? "0" : "1"; jsonData.data = warehouse; content = jsonData.ToJSON(); return(content); }