本文整理了Java中com.qcadoo.model.api.Entity.addGlobalMessage()
方法的一些代码示例,展示了Entity.addGlobalMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.addGlobalMessage()
方法的具体详情如下:
包路径:com.qcadoo.model.api.Entity
类名称:Entity
方法名:addGlobalMessage
暂无
代码示例来源:origin: qcadoo/mes
public void deleteReservationsForDeliveredProductIfChanged(Entity deliveredProduct) {
if (deliveredProduct.getId() != null) {
Entity deliveredProductFromDB = deliveredProduct.getDataDefinition().get(deliveredProduct.getId());
List<String> fields = Arrays.asList(DeliveredProductFields.DELIVERED_QUANTITY,
DeliveredProductFields.DAMAGED_QUANTITY, DeliveredProductFields.PRODUCT,
DeliveredProductFields.ADDITIONAL_CODE, DeliveredProductFields.IS_WASTE);
for (String field : fields) {
if (notEquals(deliveredProduct.getField(field), deliveredProductFromDB.getField(field))) {
if (deletePreviousReservations(Arrays.asList(deliveredProductFromDB))) {
deliveredProduct.addGlobalMessage("deliveries.delivery.message.reservationsDeletedFromDeliveredProduct");
}
break;
}
}
}
}
代码示例来源:origin: qcadoo/mes
public void deleteReservationsForOrderedProductIfChanged(Entity orderedProduct) {
if (orderedProduct.getId() != null) {
Entity orderedProductFromDB = orderedProduct.getDataDefinition().get(orderedProduct.getId());
List<String> fields = Arrays.asList(OrderedProductFields.ORDERED_QUANTITY, OrderedProductFields.PRODUCT,
OrderedProductFields.ADDITIONAL_CODE);
for (String field : fields) {
if (notEquals(orderedProduct.getField(field), orderedProductFromDB.getField(field))) {
if (deletePreviousReservations(Arrays.asList(orderedProductFromDB))) {
orderedProduct.addGlobalMessage("deliveries.delivery.message.reservationsDeletedFromOrderedProduct");
}
break;
}
}
}
}
代码示例来源:origin: qcadoo/mes
productionTracking.addGlobalMessage("productionCounting.order.orderIsAlreadyClosed", false, false);
productionTracking.addGlobalMessage("productionCounting.order.orderClosed", false, false);
productionTracking.addGlobalMessage("productionCounting.order.orderWillBeClosedAfterExtSync", false, false);
代码示例来源:origin: qcadoo/mes
orderHooks.setProductQuantity(order);
order.addGlobalMessage(
"orders.order.message.plannedQuantityChanged",
false,
内容来源于网络,如有侵权,请联系作者删除!