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

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

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

Order.getFulfillerStatus介绍

[英]Returns the current status that was received from a fulfiller for this order. It can either be RECEIVED, IN_PROGRESS, EXCEPTION or COMPLETED.
[中]返回从该订单的履行者处收到的当前状态。它可以被接收、进行中、例外或完成。

代码示例

代码示例来源: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.setOrderGroup(getOrderGroup());
target.setSortWeight(getSortWeight());
target.setFulfillerStatus(getFulfillerStatus());
target.setFulfillerComment(getFulfillerComment());

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

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);
}

相关文章