Package org.jallinone.commons.client

Examples of org.jallinone.commons.client.ClientApplet


    vo.setDocDateDOC01(new java.sql.Date(System.currentTimeMillis()));
    vo.setDocTypeDOC01(ApplicationConsts.SALE_ESTIMATE_DOC_TYPE);
    vo.setDocStateDOC01(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("DOC01_ESTIMATES");
    if (companiesList.size()>0) {
      HashMap map = new HashMap();
      // retrieve default warehouse...
      map.put(ApplicationConsts.COMPANY_CODE_SYS01,companiesList.get(0));
View Full Code Here


   * @param newValueObjects list of new value objects to save
   * @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    SaleActivityVO vo = null;
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    ArrayList companiesList = bca.getCompaniesList("SAL09");

    for(int i=0;i<newValueObjects.size();i++) {
      vo = (SaleActivityVO)newValueObjects.get(i);
      if (vo.getCompanyCodeSys01SAL09()==null) {
View Full Code Here

   */
  public void createValueObject(ValueObject valueObject) throws Exception {
    SaleActivityVO vo = (SaleActivityVO)valueObject;
    if (vo.getCompanyCodeSys01SAL09()==null) {
      // retrieve company code...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList(gridFrame.getGrid().getFunctionId());
      if (companiesList.size()==1) {
        vo.setCompanyCodeSys01SAL09(companiesList.get(0).toString());
      }

View Full Code Here

   * 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 {
    DetailCallOutRequestVO vo = (DetailCallOutRequestVO)persistentObject;
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();

    vo.setSubjectTypeReg04SCH03((String)frame.getControlSubjectType().getValue());
    vo.setRequestDateSCH03(new java.sql.Timestamp(System.currentTimeMillis()));
    vo.setCallOutStateSCH03(ApplicationConsts.OPENED);
    vo.setPrioritySCH03(ApplicationConsts.PRIORITY_NORMAL);
    vo.setRequestYearSCH03(new BigDecimal(vo.getRequestDateSCH03().getYear()+1900));
    vo.setUsernameSys03SCH03(applet.getUsername());
    if (frame.getControlCallOutType().getComboBox().getModel().getSize()>0)
        frame.getControlCallOutType().getComboBox().setSelectedIndex(0);
    vo.setProgressiveHie02SCH10((BigDecimal)frame.getControlCallOutType().getValue());
  }
View Full Code Here

  public CloseAccountsFrame() {
    try {
      jbInit();

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

  public OpenAccountsFrame() {
    try {
      jbInit();

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

    vo.setDocDateDOC01(new java.sql.Date(System.currentTimeMillis()));
    vo.setDocTypeDOC01(ApplicationConsts.SALE_CONTRACT_DOC_TYPE);
    vo.setDocStateDOC01(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("DOC01_CONTRACTS");
    if (companiesList.size()>0) {
      // retrieve default customer code...
      HashMap map = new HashMap();
      // retrieve default warehouse...
View Full Code Here

  public BudgetFilterFrame() {
    try {
      jbInit();

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

  public DebitCreditFilterFrame() {
    try {
      jbInit();

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

      grid.setController(gridController);
      grid.setGridDataLocator(gridDataLocator);
      gridDataLocator.setServerMethodName("loadCustomizedReports");

      // set domain in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("SYS15");
      Domain domain = new Domain("DOMAIN_SYS15");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "SYS15",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
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.