Examples of DisplayTransferOrder


Examples of com.swinarta.sunflower.server.model.DisplayTransferOrder

  public SgwtRestResponseBase fetch(){
    Serializable resp = null;   
    Integer id = RequestUtil.getInteger(getRequestAttributes().get("id"));
    TransferOrder transfer = coreManager.get(TransferOrder.class, id);
    if(transfer != null){
      DisplayTransferOrder dto = mapper.map(transfer, DisplayTransferOrder.class);
      resp = dto;
    }
    SgwtRestFetchResponseBase ret = new SgwtRestFetchResponseBase(resp);
    return ret;
   
View Full Code Here

Examples of com.swinarta.sunflower.server.model.DisplayTransferOrder

      }else{
        to.setRemarks(remarks);
        to.setStatus(TOStatus);
        transferResp = coreManager.save(TransferOrder.class, to);
      }
      DisplayTransferOrder dto = mapper.map(transferResp, DisplayTransferOrder.class);
      resp = dto;
    } catch (Exception e) {
      SgwtRestErrorResponse resp1 = new SgwtRestErrorResponse(-1);
      resp1.addError("exception", e.getMessage());
      return resp1;       
View Full Code Here

Examples of com.swinarta.sunflower.server.model.DisplayTransferOrder

    try {
      TransferOrder transferResp = coreManager.save(TransferOrder.class, transfer);
      transferResp.setTransferId(TransferUtil.constructCode(transfer.getTransferDate(), fromStore.getId(), toStore.getId(), transferResp.getId()));
      transferResp = coreManager.save(TransferOrder.class, transferResp);
     
      DisplayTransferOrder dto = mapper.map(transferResp, DisplayTransferOrder.class);
      resp = dto;
     
    } catch (Exception e) {
      SgwtRestErrorResponse resp1 = new SgwtRestErrorResponse(-1);
      resp1.addError("exception", e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.