public Response <GetReceiptDetailByConditionResponse> GetReceiptByIDs(string IDs) { Response <GetReceiptDetailByConditionResponse> response = new Response <GetReceiptDetailByConditionResponse>() { Result = new GetReceiptDetailByConditionResponse() }; try { ReceiptManagementAccessor accessor = new ReceiptManagementAccessor(); //int RowCount; //if (request.PageSize > 0) //{ response.Result = accessor.GetReceiptByIDs(IDs); //} //else //{ // response.Result.PageIndex = 0; // response.Result.PageCount = 0; // response.Result.ReceiptCollection = accessor.GetWarehouseByConditionNoPaging(request.SearchCondition); //} response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.Exception = ex; response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; } return(response); }