| | |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 inoutDataPR#delInoutData |
| | | */ |
| | | @DataResolver |
| | | public String delInoutData(InoutData data) throws Exception { |
| | | return inoutManager.delInoutData(data, false); |
| | | } |
| | | |
| | | /** |
| | | * inoutDataPR#errorInoutData 出入库数据执行 异常终止 |
| | | * |
| | | * @param data |
| | |
| | | * @throws Exception |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | public String errorInoutData(InoutData data) throws Exception { |
| | | return inoutManager.errorInoutData(data); |
| | | } |
| | |
| | | if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "删除的数据不支持打印!"; |
| | | } |
| | | if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { |
| | | return "异常终止的数据不支持打印!"; |
| | | } |
| | | if (!InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | return "未完成的数据不支持打印!"; |
| | | } |
| | |
| | | if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return null; |
| | | } |
| | | if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { |
| | | return null; |
| | | } |
| | | if (!InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | return null; |
| | | } |
| | |
| | | public String printCheckBill(InoutData data) throws Exception { |
| | | if (InoutConstant.RECORD_STATUS_DEL.equals(data.getRecordStatus())) { |
| | | return "删除的数据不支持打印!"; |
| | | } |
| | | if (InoutConstant.RECORD_STATUS_ERROR.equals(data.getRecordStatus())) { |
| | | return "异常终止的数据不支持打印!"; |
| | | } |
| | | return inoutReportManager.inCheckBill(data); |
| | | } |