本文整理了Java中org.openmrs.Order.getFulfillerComment()
方法的一些代码示例,展示了Order.getFulfillerComment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.getFulfillerComment()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!