org.openmrs.Order.getFulfillerComment()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.openmrs.Order.getFulfillerComment()方法的一些代码示例,展示了Order.getFulfillerComment()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.getFulfillerComment()方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:getFulfillerComment

Order.getFulfillerComment介绍

[英]Returns the comment received from the fulfiller regarding this order.
[中]返回从履行者处收到的有关此订单的评论。

代码示例

代码示例来源:origin: openmrs/openmrs-core

/**
 * @see OrderService#updateOrderFulfillerStatus(org.openmrs.Order, Order.FulfillerStatus, String)
 */
@Test
public void updateOrderFulfillerStatus_shouldEditFulfillerStatusInOrder() {
  Order originalOrder = orderService.getOrder(111);
  String commentText = "We got the new order";
  assertNotEquals(originalOrder.getFulfillerStatus(), Order.FulfillerStatus.IN_PROGRESS);
  orderService.updateOrderFulfillerStatus(originalOrder, Order.FulfillerStatus.IN_PROGRESS, commentText);
  Context.flushSession();
  Order updatedOrder = orderService.getOrder(111);
  
  assertEquals(updatedOrder.getFulfillerStatus(), Order.FulfillerStatus.IN_PROGRESS);
  assertEquals(updatedOrder.getFulfillerComment(), commentText);
}

代码示例来源:origin: openmrs/openmrs-core

target.setSortWeight(getSortWeight());
target.setFulfillerStatus(getFulfillerStatus());
target.setFulfillerComment(getFulfillerComment());

代码示例来源:origin: openmrs/openmrs-core

target.setOrderGroup(getOrderGroup());
target.setSortWeight(getSortWeight());
target.setFulfillerComment(getFulfillerComment());
target.setFulfillerStatus(getFulfillerStatus());
return target;

代码示例来源:origin: openmrs/openmrs-module-webservices.rest

@Test
public void test_shouldSetFulfillerDetailsOfOrderByPost() throws Exception {
  Order.FulfillerStatus fulfillerStatus = Order.FulfillerStatus.RECEIVED;
  String fillerComment = "An example comment from a filler";
  SimpleObject post = new SimpleObject().add("fulfillerStatus", fulfillerStatus)
      .add("fulfillerComment", fillerComment);
  MockHttpServletRequest request = newPostRequest(getURI(), post);
  
  handle(request);
  
  Order order = Context.getOrderService().getOrderByUuid(RestTestConstants2_2.ORDER_UUID);
  assertEquals(order.getFulfillerStatus(), fulfillerStatus);
  assertEquals(order.getFulfillerComment(), fillerComment);
}

相关文章