Package com.swinarta.sunflower.core.model

Examples of com.swinarta.sunflower.core.model.Store


    Serializable resp = null;
    String remarks = RequestUtil.getString(req.getData().get("remarks"));
    String fromStoreCode = RequestUtil.getString(req.getData().get("fromStoreCode"));
    String toStoreCode = RequestUtil.getString(req.getData().get("toStoreCode"));
   
    Store fromStore = coreManager.getStore(fromStoreCode);
    Store toStore = coreManager.getStore(toStoreCode);
       
    TransferOrder transfer = new TransferOrder();
    transfer.setTransferDate(new Date());
    transfer.setFromStoreCode(fromStoreCode);
    transfer.setToStoreCode(toStoreCode);
    transfer.setTransferId("temp");
    transfer.setRemarks(remarks);
    transfer.setStatus(com.swinarta.sunflower.core.model.TransferOrder.Status.NEW);
   
   
    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;
     
View Full Code Here


   
    List<ReceivingOrderDetail> list = coreManager.getReceivingOrderDetails(id);
   
    if(list.size() > 0){
      Integer storeId = list.get(0).getReceivingOrder().getPo().getDeliverStoreId();
      Store store = coreManager.get(Store.class, storeId);
      paramMap.put("storeName", store.getName());
      paramMap.put("storeAddress", store.getAddress());
      paramMap.put("storeCity", store.getCity());
    }
       
    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);
   
    try {
View Full Code Here

   
    List<PurchasingOrderDetail> list = coreManager.getPurchasingOrderDetails(id);
   
    if(list.size() > 0){
      Integer storeId = list.get(0).getPurchasingOrder().getDeliverStoreId();
      Store store = coreManager.get(Store.class, storeId);
      paramMap.put("storeName", store.getName());
      paramMap.put("storeAddress", store.getAddress());
      paramMap.put("storeCity", store.getCity());
    }
       
    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);
   
    try {
View Full Code Here

  @Get("json")
  public SgwtRestResponseBase getRepresent(){
   
    Integer storeId = Integer.parseInt(properties.getProperty("curr.store.id"));
       
    Store s = coreManager.get(Store.class, storeId);
   
    SgwtRestFetchResponseBase ret = new SgwtRestFetchResponseBase(s);
       
    return ret;
   
View Full Code Here

TOP

Related Classes of com.swinarta.sunflower.core.model.Store

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.