Package org.jallinone.commons.client

Examples of org.jallinone.commons.client.ClientApplet



      CustomizedColumns cust = new CustomizedColumns(new BigDecimal(192),grid);

      // fill in the company combo...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("REG07");
      Domain domain = new Domain("DOMAIN_REG07");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "REG07",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      colCompany.setDomain(domain);
View Full Code Here


   */
  public void createPersistentObject(ValueObject persistentObject) throws Exception {
    DetailProdOrderVO vo = (DetailProdOrderVO)persistentObject;

    // set company code if not yet setted...
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    ArrayList companiesList = bca.getCompaniesList("DOC22");
    if (companiesList.size()>0 && vo.getCompanyCodeSys01DOC22()==null) {
      vo.setCompanyCodeSys01DOC22((String)companiesList.get(0));
    }

View Full Code Here

   * Callback method called by the Form panel when the Form is set to INSERT mode.
   * The method can pre-set some v.o. attributes, so that some input controls will have a predefined value associated.
   * @param persistentObject new value object
   */
  public void createPersistentObject(ValueObject persistentObject) throws Exception {
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    String companyCode = null;
    if (applet.getAuthorizations().isOneCompany()) {
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("SAL07");
      companyCode = companiesList.get(0).toString();
      ((Subject)persistentObject).setCompanyCodeSys01REG04( companyCode );
    }

View Full Code Here

    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

    // 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

    vo.setDocDateDOC06(new java.sql.Date(System.currentTimeMillis()));
    vo.setDocTypeDOC06(ApplicationConsts.PURCHASE_DEBIT_NOTE_DOC_TYPE);
    vo.setDocStateDOC06(ApplicationConsts.OPENED);

    // pre-set warehouse code if previously defined (stored in SYS19 table...)
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    final ArrayList companiesList = bca.getCompaniesList("DOC06_DEBITINGNOTES");
    if (companiesList.size()>0) {
      HashMap map = new HashMap();
      // retrieve default warehouse...
      map.put(ApplicationConsts.COMPANY_CODE_SYS01,companiesList.get(0));
View Full Code Here

    vo.setDocDateDOC06(new java.sql.Date(System.currentTimeMillis()));
    vo.setDocTypeDOC06(ApplicationConsts.PURCHASE_INVOICE_DOC_TYPE);
    vo.setDocStateDOC06(ApplicationConsts.OPENED);

    // pre-set warehouse code if previously defined (stored in SYS19 table...)
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    final ArrayList companiesList = bca.getCompaniesList("DOC06_INV");
    if (companiesList.size()>0) {
      HashMap map = new HashMap();
      // retrieve default warehouse...
      map.put(ApplicationConsts.COMPANY_CODE_SYS01,companiesList.get(0));
View Full Code Here

TOP

Related Classes of org.jallinone.commons.client.ClientApplet

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.