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

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

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

Order.getVoidedBy介绍

暂无

代码示例

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

for (Order order : orders) {
  if (order.getVoided() && order.getDateVoided().equals(origParentVoidedDate)
      && order.getVoidedBy().equals(originalVoidingUser)) {
    os.unvoidOrder(order);

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

/**
 * @see OrderService#voidOrder(org.openmrs.Order, String)
 */
@Test
public void voidOrder_shouldVoidAnOrder() {
  Order order = orderService.getOrder(1);
  assertFalse(order.getVoided());
  assertNull(order.getDateVoided());
  assertNull(order.getVoidedBy());
  assertNull(order.getVoidReason());
  
  orderService.voidOrder(order, "None");
  assertTrue(order.getVoided());
  assertNotNull(order.getDateVoided());
  assertNotNull(order.getVoidedBy());
  assertNotNull(order.getVoidReason());
}

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

/**
 * @see OrderService#unvoidOrder(org.openmrs.Order)
 */
@Test
public void unvoidOrder_shouldUnvoidAnOrder() {
  Order order = orderService.getOrder(8);
  assertTrue(order.getVoided());
  assertNotNull(order.getDateVoided());
  assertNotNull(order.getVoidedBy());
  assertNotNull(order.getVoidReason());
  
  orderService.unvoidOrder(order);
  assertFalse(order.getVoided());
  assertNull(order.getDateVoided());
  assertNull(order.getVoidedBy());
  assertNull(order.getVoidReason());
}

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

/**
 * @see OrderService#unvoidOrder(org.openmrs.Order)
 */
@Test
public void shouldUnvoidAnOrderAndFlushSuccessfully() {
  Order order = orderService.getOrder(8);
  assertTrue(order.getVoided());
  assertNotNull(order.getDateVoided());
  assertNotNull(order.getVoidedBy());
  assertNotNull(order.getVoidReason());
  
  orderService.unvoidOrder(order);
  Context.flushSession();
  assertFalse(order.getVoided());
  assertNull(order.getDateVoided());
  assertNull(order.getVoidedBy());
  assertNull(order.getVoidReason());
}

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

/**
 * @see OrderService#voidOrder(org.openmrs.Order, String)
 */
@Test
public void shouldVoidAnOrderAndFlushSuccessfully() {
  Order order = orderService.getOrder(1);
  assertFalse(order.getVoided());
  assertNull(order.getDateVoided());
  assertNull(order.getVoidedBy());
  assertNull(order.getVoidReason());
  
  orderService.voidOrder(order, "None");
  //forces hibernate interceptors to get invoked
  Context.flushSession();
  assertTrue(order.getVoided());
  assertNotNull(order.getDateVoided());
  assertNotNull(order.getVoidedBy());
  assertNotNull(order.getVoidReason());
}

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

assertNotNull(testOrder.getVoidedBy());
assertNotNull(testOrder.getVoidReason());

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

assertNull(order.getVoidedBy());
assertNull(order.getVoidReason());
assertTrue(order.getVoided());
assertNotNull(order.getDateVoided());
assertNotNull(order.getVoidedBy());
assertNotNull(order.getVoidReason());

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

assertTrue(order.getVoided());
assertNotNull(order.getDateVoided());
assertNotNull(order.getVoidedBy());
assertNotNull(order.getVoidReason());
assertFalse(order.getVoided());
assertNull(order.getDateVoided());
assertNull(order.getVoidedBy());
assertNull(order.getVoidReason());

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

target.setAccessionNumber(getAccessionNumber());
target.setVoided(getVoided());
target.setVoidedBy(getVoidedBy());
target.setDateVoided(getDateVoided());
target.setVoidReason(getVoidReason());

相关文章