Package org.openswing.swing.message.send.java

Examples of org.openswing.swing.message.send.java.LookupValidationParams


    return "validateLanguageCode";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {

      Languages bean = (Languages)JAIOBeanFactory.getInstance().getBean(Languages.class);
      Response answer = bean.validateLanguageCode(validationPars,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here


    return "validateTransportMotiveCode";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_TRANSPORT_MOTIVES);

      TransportMotives bean = (TransportMotives)JAIOBeanFactory.getInstance().getBean(TransportMotives.class);
View Full Code Here


      // retrieve payment instalments...
      ArrayList compList = new ArrayList();
      compList.add(docVO.getCompanyCodeSys01DOC01());
      res = payAction.validatePaymentCode(new LookupValidationParams(docVO.getPaymentCodeReg10DOC01(),new HashMap()),serverLanguageId,username,new ArrayList(),compList);
      if (res.isError()) {
        throw new Exception(res.getErrorMessage());
      }
      PaymentVO payVO = (PaymentVO)((VOListResponse)res).getRows().get(0);
View Full Code Here

    try {
      controlSN.setEnabled(false);

      // validate variants barcode...
      DetailSaleDocRowVO vo = (DetailSaleDocRowVO)getDetailPanel().getVOModel().getValueObject();
      LookupValidationParams pars = new LookupValidationParams((String)controlBarCode.getValue(),new HashMap());
      pars.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,getParentVO().getCompanyCodeSys01DOC01());
      Response res = ClientUtils.getData("validateVariantBarcode",pars);
      if (!res.isError()) {
        java.util.List rows = ( (VOListResponse) res).getRows();
        if (rows.size() == 1) {
          // found variants barcode: pre-fill code and qty in variants matrix...
          VariantBarcodeVO itemVO = (VariantBarcodeVO)rows.get(0);
          vo.setSerialNumbers(new ArrayList());
          vo.setCompanyCodeSys01DOC02(itemVO.getCompanyCodeSys01ITM22());
          vo.setItemCodeItm01DOC02(itemVO.getItemCodeItm01ITM22());
          vo.setVariantTypeItm06DOC02(itemVO.getVariantTypeItm06ITM22());
          vo.setVariantCodeItm11DOC02(itemVO.getVariantCodeItm11ITM22());
          vo.setVariantTypeItm07DOC02(itemVO.getVariantTypeItm07ITM22());
          vo.setVariantCodeItm12DOC02(itemVO.getVariantCodeItm12ITM22());
          vo.setVariantTypeItm08DOC02(itemVO.getVariantTypeItm08ITM22());
          vo.setVariantCodeItm13DOC02(itemVO.getVariantCodeItm13ITM22());
          vo.setVariantTypeItm09DOC02(itemVO.getVariantTypeItm09ITM22());
          vo.setVariantCodeItm14DOC02(itemVO.getVariantCodeItm14ITM22());
          vo.setVariantTypeItm10DOC02(itemVO.getVariantTypeItm10ITM22());
          vo.setVariantCodeItm15DOC02(itemVO.getVariantCodeItm15ITM22());

          variantsPanel.setVariantsBarcode(itemVO);
          variantsPanel.setSN(null);
          controlItemCode.setValue(itemVO.getItemCodeItm01ITM22());
          itemController.forceValidate();
          controlBarCode.setValue(null);
          return;
        }
      }
      else {
        // validate item barcode...
        pars = new LookupValidationParams((String)controlBarCode.getValue(),new HashMap());
        pars.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,getParentVO().getCompanyCodeSys01DOC01());
        pars.getLookupValidationParameters().put(ApplicationConsts.PRICELIST,getParentVO().getPricelistCodeSal01DOC01());
        pars.getLookupValidationParameters().put(ApplicationConsts.VALIDATE_BARCODE,Boolean.TRUE);
        res = ClientUtils.getData("validatePriceItemCode",pars);
        if (!res.isError()) {
          java.util.List rows = ((VOListResponse)res).getRows();
          if (rows.size()==1) {
            PriceItemVO itemVO = (PriceItemVO)rows.get(0);
View Full Code Here

    return "validateAccountingMotiveCode";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTING_MOTIVES);

      AccountingMotives bean = (AccountingMotives)JAIOBeanFactory.getInstance().getBean(AccountingMotives.class);
View Full Code Here

          getInvoices().reloadCurrentBlockOfData();


          // check if there is only one instalment and this instalment has 0 instalment days
          DetailSaleDocVO vo = (DetailSaleDocVO)headerFormPanel.getVOModel().getValueObject();
          res = ClientUtils.getData("validatePaymentCode",new LookupValidationParams(vo.getPaymentCodeReg10DOC01(),new HashMap()));
          if (res.isError()) {
            OptionPane.showMessageDialog(
                  ClientUtils.getParentFrame(this),
                  res.getErrorMessage(),
                  ClientSettings.getInstance().getResources().getResource("invoice closing"),
View Full Code Here

    return "validateAccountCode";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {
      CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
      ArrayList customizedFields = cust.getCustomizedFields(ApplicationConsts.ID_ACCOUNTS);

      Accounts bean = (Accounts)JAIOBeanFactory.getInstance().getBean(Accounts.class);
View Full Code Here

          getInvoices().reloadCurrentBlockOfData();


          // check if there is only one instalment and this instalment has 0 instalment days
          DetailSaleDocVO vo = (DetailSaleDocVO)headerFormPanel.getVOModel().getValueObject();
          res = ClientUtils.getData("validatePaymentCode",new LookupValidationParams(vo.getPaymentCodeReg10DOC01(),new HashMap()));
          if (res.isError()) {
            OptionPane.showMessageDialog(
                  ClientUtils.getParentFrame(this),
                  res.getErrorMessage(),
                  ClientSettings.getInstance().getResources().getResource("invoice closing"),
View Full Code Here

        }


        HashMap map = new HashMap();
        map.put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01REG04());
        LookupValidationParams pars = new LookupValidationParams(vo.getDebitAccountCodeAcc02PUR01(),map);
        Response aRes = accountAction.validateAccountCode(pars,serverLanguageId,username,companiesList,new ArrayList());
        if (!aRes.isError())
          vo.setDebitAccountDescrPUR01( ((AccountVO)((VOListResponse)aRes).getRows().get(0)).getDescriptionSYS10() );

        pars = new LookupValidationParams(vo.getCostsAccountCodeAcc02PUR01(),map);
        aRes = accountAction.validateAccountCode(pars,serverLanguageId,username,companiesList,new ArrayList());
        if (!aRes.isError())
          vo.setCostsAccountDescrPUR01( ((AccountVO)((VOListResponse)aRes).getRows().get(0)).getDescriptionSYS10() );

      }
View Full Code Here

    return "validateWarehouseMotiveCode";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    LookupValidationParams validationPars = (LookupValidationParams)inputPar;
    try {

      WarehouseMotives bean = (WarehouseMotives)JAIOBeanFactory.getInstance().getBean(WarehouseMotives.class);
      Response answer = bean.validateWarehouseMotiveCode(validationPars,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

TOP

Related Classes of org.openswing.swing.message.send.java.LookupValidationParams

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.