Package com.swinarta.sunflower.server.model

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


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


        po.setCancelDate(cancelDate);
        po.setRemarks(remarks);
        po.setStatus(POStatus);
        poResp = coreManager.save(PurchasingOrder.class, po);
      }
      DisplaySearchPurchasingOrder dpo = mapper.map(poResp, DisplaySearchPurchasingOrder.class);
      resp = dpo;
    } catch (Exception e) {
      SgwtRestErrorResponse resp1 = new SgwtRestErrorResponse(-1);
      resp1.addError("exception", e.getMessage());
      return resp1;       
View Full Code Here

    try {
      PurchasingOrder poResp = coreManager.save(PurchasingOrder.class, po);
      poResp.setPoId(PoUtil.constructPoId(poResp.getPoDate(), poResp.getSupplier().getId(), poResp.getId()));
      poResp = coreManager.save(PurchasingOrder.class, poResp);
     
      DisplaySearchPurchasingOrder dpo = mapper.map(poResp, DisplaySearchPurchasingOrder.class);
      resp = dpo;
     
    } catch (Exception e) {
      SgwtRestErrorResponse resp1 = new SgwtRestErrorResponse(-1);
      resp1.addError("exception", e.getMessage());
View Full Code Here

TOP

Related Classes of com.swinarta.sunflower.server.model.DisplaySearchPurchasingOrder

Copyright © 2018 www.massapicom. 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.