Package org.jallinone.warehouse.java

Examples of org.jallinone.warehouse.java.WarehouseVO


    boolean canEdit = super.beforeEditData(form);
    if (!canEdit)
      return false;

    // warehouse data are editable ONLY if the user has the "warehouse role" (progressiveSys04WAR01)...
    WarehouseVO vo = (WarehouseVO)form.getVOModel().getValueObject();
    if (vo.getProgressiveSys04WAR01()==null) {
      detailFrame.getHierarTreePanel().setEnabled(true);
      return true;
    }
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    if (!applet.getAuthorizations().getUserRoles().containsKey(vo.getProgressiveSys04WAR01())) {
      JOptionPane.showMessageDialog(
        ClientUtils.getParentFrame(form),
        ClientSettings.getInstance().getResources().getResource(
        "You are not allowed to edit data."),
        ClientSettings.getInstance().getResources().getResource(
View Full Code Here


    boolean canDelete = super.beforeDeleteData(form);
    if (!canDelete)
      return false;

    // warehouse data are erasable ONLY if the user has the "warehouse role" (progressiveSys04WAR01)...
    WarehouseVO vo = (WarehouseVO)form.getVOModel().getValueObject();
    if (vo.getProgressiveSys04WAR01()==null)
      return true;
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    if (!applet.getAuthorizations().getUserRoles().containsKey(vo.getProgressiveSys04WAR01())) {
      JOptionPane.showMessageDialog(
        ClientUtils.getParentFrame(form),
        ClientSettings.getInstance().getResources().getResource(
        "You are not allowed to delete data."),
        ClientSettings.getInstance().getResources().getResource(
View Full Code Here

      ware2Controller.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          WarehouseVO lookupVO = (WarehouseVO)ware2Controller.getLookupVO();
          treeLevelPosDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,lookupVO.getProgressiveHie02WAR01());

        }

        public void beforeLookupAction(ValueObject parentVO) {
          DetailProdOrderVO vo = (DetailProdOrderVO)headerFormPanel.getVOModel().getValueObject();
View Full Code Here

   * Method called by the Form panel to delete existing data.
   * @param persistentObject value object to delete
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    WarehouseVO vo = (WarehouseVO)persistentObject;
    WarehousePK pk = new WarehousePK(vo.getCompanyCodeSys01WAR01(),vo.getWarehouseCodeWAR01());
    Response response = ClientUtils.getData("deleteWarehouse",pk);
    if (!response.isError()) {
      gridFrame.reloadData();
    }
    return response;
View Full Code Here

  /**
   * Callback method called when the data loading is completed.
   * @param error <code>true</code> if an error occours during data loading, <code>false</code> if data loading is successfully completed
   */
  public void loadDataCompleted(boolean error) {
    WarehouseVO vo = (WarehouseVO)detailFrame.getWarehouseForm().getVOModel().getValueObject();

    detailFrame.getHierarTreePanel().setEnabled(false);
    detailFrame.getHierarTreePanel().setCompanyCode(vo.getCompanyCodeSys01WAR01());
    detailFrame.getHierarTreePanel().setProgressiveHIE02(vo.getProgressiveHie02WAR01());
    detailFrame.getHierarTreePanel().reloadTree();

    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02WAR01());
    if (detailFrame.getHierarTreePanel().getSelectedNode()!=null) {
      CompanyHierarchyLevelVO levelVO = (CompanyHierarchyLevelVO)detailFrame.getHierarTreePanel().getSelectedNode().getUserObject();
      detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,levelVO.getCompanySys01HIE01());
      detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_HIE01,levelVO.getProgressiveHIE01());
    }
    detailFrame.getAvailPanel().setEnabled(true);
    detailFrame.getAvailPanel().getGrid().reloadData();

    detailFrame.getBookedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getBookedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getBookedItemsPanel().setEnabled(true);
    detailFrame.getBookedItemsPanel().getGrid().reloadData();

    detailFrame.getOrderedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getOrderedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getOrderedItemsPanel().setEnabled(true);
  }
View Full Code Here

  /**
   * Callback method called when inserting data is SUCCESSFULLY completed.
   */
  public void afterInsertData() {
    WarehouseVO vo = (WarehouseVO)detailFrame.getWarehouseForm().getVOModel().getValueObject();
    detailFrame.getHierarTreePanel().setCompanyCode(vo.getCompanyCodeSys01WAR01());
    detailFrame.getHierarTreePanel().setProgressiveHIE02(vo.getProgressiveHie02WAR01());
    detailFrame.getHierarTreePanel().reloadTree();

    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getAvailPanel().getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02WAR01());
    detailFrame.getAvailPanel().setEnabled(true);

    detailFrame.getBookedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getBookedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getBookedItemsPanel().setEnabled(true);

    detailFrame.getOrderedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01WAR01());
    detailFrame.getOrderedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,vo.getWarehouseCodeWAR01());
    detailFrame.getBookedItemsPanel().setEnabled(true);
  }
View Full Code Here

TOP

Related Classes of org.jallinone.warehouse.java.WarehouseVO

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.