コード例 #1
0
 public void onFindLocation() {
   locationItemViews = new LocationItemView();
   log.debug("onFindLocation : {}", locationItemViews.toString());
   isCheckLocation = true;
   setMessageHeader(
       "Find Location for Item "
           + palletMeanegementView.getItemModel().getDSGThaiItemDescription());
   locationItemViewList =
       locationItemService.findLocationByItemId(palletMeanegementView.getItemModel().getId());
   statusOnShow = 0;
 }
コード例 #2
0
  public void onClickPalletTB() {
    log.debug("onClickPalletTB(). {}", palletMeanegementView);
    isCheckPrintTag = false;
    isCheckClosePallet = false;
    if (palletMeanegementView.getStatus().getId() > 2) {
      isCheckLocation = false;
    } else {
      isCheckLocation = true;
    }

    if (palletMeanegementView.getIsFoil() == 1) {
      isCheckUnFoil = false;
    }
  }
コード例 #3
0
 public void OnClosePallet() {
   log.debug("OnClosePallet().");
   if (palletMeanegementView.getQty() == 0
       && !"Closed".equalsIgnoreCase(palletMeanegementView.getStatus().getName())) {
     showDialog(
         MessageDialog.SAVE.getMessageHeader(),
         "The Pallet will not be used agin.",
         "confirmClosePalletDlg");
   } else if ("Closed".equalsIgnoreCase(palletMeanegementView.getStatus().getName())) {
     log.debug("Already Closed Pallet");
     showDialogWarning("Already Closed Pallet");
   } else {
     log.debug("Qty > 0");
     showDialogError("Qty > 0");
   }
   statusOnShow = 0;
 }
コード例 #4
0
 public void onPrintTag(String redirect) {
   log.debug("OnPrintTag(). {}", palletMeanegementView);
   pmvId = palletMeanegementView.getId();
   palletService.onUpdateByPrintTag(palletMeanegementView, redirect);
   setMessage(MessageDialog.UPDATE.getMessage());
   setMessageHeader(MessageDialog.UPDATE.getMessageHeader());
   onCreation();
   statusOnShow = 0;
 }
コード例 #5
0
 public void OnChangeLocationToPallet() {
   log.debug("OnChangeLocationToPallet().");
   log.debug(
       "PalletView : {}, locationView : {}",
       palletMeanegementView.getId(),
       locationItemViews.getId());
   palletService.changeLocation(palletMeanegementView, locationItemViews);
   showDialogUpdated();
   onCreation();
 }