use of com.axelor.apps.production.service.manuforder.ManufOrderService in project axelor-open-suite by axelor.
the class ManufOrderController method updatePlannedQty.
/**
* Called from manuf order wizard view. Call {@link
* ManufOrderService#updatePlannedQty(ManufOrder)}
*
* @param request
* @param response
*/
public void updatePlannedQty(ActionRequest request, ActionResponse response) {
try {
ManufOrder manufOrder = request.getContext().asType(ManufOrder.class);
manufOrder = Beans.get(ManufOrderRepository.class).find(manufOrder.getId());
Beans.get(ManufOrderService.class).updatePlannedQty(manufOrder);
response.setReload(true);
response.setCanClose(true);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
use of com.axelor.apps.production.service.manuforder.ManufOrderService in project axelor-open-suite by axelor.
the class ManufOrderController method preFillOperations.
public void preFillOperations(ActionRequest request, ActionResponse response) throws AxelorException {
try {
ManufOrder manufOrder = request.getContext().asType(ManufOrder.class);
ManufOrderService moService = Beans.get(ManufOrderService.class);
manufOrder = Beans.get(ManufOrderRepository.class).find(manufOrder.getId());
moService.preFillOperations(manufOrder);
response.setReload(true);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
use of com.axelor.apps.production.service.manuforder.ManufOrderService in project axelor-open-suite by axelor.
the class ManufOrderController method checkConsumedStockMoveLineList.
/**
* Called from manuf order form, on consumed stock move line change. Call {@link
* ManufOrderService#checkConsumedStockMoveLineList(ManufOrder, ManufOrder)}.
*
* @param request
* @param response
*/
public void checkConsumedStockMoveLineList(ActionRequest request, ActionResponse response) {
try {
ManufOrder manufOrder = request.getContext().asType(ManufOrder.class);
ManufOrder oldManufOrder = Beans.get(ManufOrderRepository.class).find(manufOrder.getId());
Beans.get(ManufOrderService.class).checkConsumedStockMoveLineList(manufOrder, oldManufOrder);
} catch (Exception e) {
TraceBackService.trace(response, e);
response.setReload(true);
}
}
Aggregations