Examples of GridParams


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

          attribute2dbField,
          GridSaleDocVO.class,
          "Y",
          "N",
          null,
          new GridParams(),
          50,
          true
      );

View Full Code Here

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

    }
  }


  private void init() {
    Response res = ClientUtils.getData("loadItemTypes",new GridParams());
    final Domain d = new Domain("ITEM_TYPES");
    if (!res.isError()) {
      ItemTypeVO vo = null;
      itemTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<itemTypes.size();i++) {
View Full Code Here

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

          attribute2dbField,
          CallOutVO.class,
          "Y",
          "N",
          null,
          new GridParams(),
          true
      );


      if (answer.isError()) throw new Exception(answer.getErrorMessage()); else return (VOListResponse)answer;
View Full Code Here

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

  }


  private void init() {
    // define combo on item types...
    Response res = ClientUtils.getData("loadItemTypes",new GridParams());
    final Domain d = new Domain("ITEM_TYPES");
    if (!res.isError()) {
      ItemTypeVO vo = null;
      itemTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<itemTypes.size();i++) {
View Full Code Here

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

   * @return a VOResponse object if data loading is successfully completed, or an ErrorResponse object if an error occours
   */
  public Response loadData(Class valueObjectClass) {
    DetailCallOutRequestVO vo = (DetailCallOutRequestVO)frame.getCalloutPanel().getVOModel().getValueObject();

    GridParams gridParams = new GridParams();
    gridParams.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
    gridParams.getOtherGridParams().put(ApplicationConsts.SUBJECT_TYPE,vo.getSubjectTypeReg04SCH03());
    gridParams.getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,vo.getProgressiveReg04SCH03());
    Response res = ClientUtils.getData("loadSubjectPerName",gridParams);
    if (res.isError())
      return res;
    else if (((VOListResponse)res).getRows().size()==0)
      return new ErrorResponse("reload non allowed");
View Full Code Here

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

    controlComp.setLinkLabel(labelCompany);
    controlComp.setFunctionCode("SCH03");
    controlCallOutTypes.setAttributeName("calloutType");

    // set call-out types in call-out type input control...
    Response res = ClientUtils.getData("loadCallOutTypes",new GridParams());
    Domain d = new Domain("CALL_OUT_TYPES");
    if (!res.isError()) {
      CallOutTypeVO vo = null;
      calloutTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<calloutTypes.size();i++) {
View Full Code Here

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

        }
      }
    });

    // set call-out types in call-out type input control...
    Response res = ClientUtils.getData("loadCallOutTypes",new GridParams());
    Domain d = new Domain("CALL_OUT_TYPES");
    if (!res.isError()) {
      CallOutTypeVO vo = null;
      types = ((VOListResponse)res).getRows();
      for(int i=0;i<types.size();i++) {
        vo = (CallOutTypeVO)types.get(i);
        d.addDomainPair(vo.getProgressiveHie02SCH11(),vo.getDescriptionSYS10());
      }
    }
    controlCallOutType.setDomain(d);
    controlCallOutType.getComboBox().addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange() == e.SELECTED) {
          controlCallOutCode.getCodBox().setText(null);
          controlCallOutDescr.setText("");

          CallOutTypeVO vo = (CallOutTypeVO)types.get(controlCallOutType.getSelectedIndex());

          callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01, vo.getCompanyCodeSys01SCH11());
          callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02, controlCallOutType.getValue());
        }
      }
    });
    if (d.getDomainPairList().length==1)
      controlCallOutType.getComboBox().setSelectedIndex(0);
    else
      controlCallOutType.getComboBox().setSelectedIndex(-1);

    // add listener in subject type input control...
    controlSubjectType.getComboBox().addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange()==e.SELECTED)
          subjectChanged((String)controlSubjectType.getValue());
      }
    });


    // retrieve item types..
    res = ClientUtils.getData("loadItemTypes",new GridParams());
    final Domain dd = new Domain("ITEM_TYPES");
    if (!res.isError()) {
      ItemTypeVO vo = null;
      itemTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<itemTypes.size();i++) {
View Full Code Here

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

   * Retrieve people: if it exists, then load it in the panel and set the panel in detail mode and enabled the other panes in the tabbed pane.
   * @param name_1 first name
   * @param name_2 last name
   */
  private void retrievePeople(String name_1,String name_2) {
    GridParams gridParams = new GridParams();
    gridParams.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
    gridParams.getOtherGridParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
    gridParams.getOtherGridParams().put(ApplicationConsts.NAME_1,name_1);
    gridParams.getOtherGridParams().put(ApplicationConsts.NAME_2,name_2);
    Response res = ClientUtils.getData("loadSubjectPerName",gridParams);
    if (!res.isError()) {
      java.util.List vos = ((VOListResponse)res).getRows();
      if (vos.size()==1) {
        // person found...
View Full Code Here

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

  /**
   * Retrieve organization: if it exists, then load it in the panel and set the panel in detail mode and enabled the other panes in the tabbed pane.
   * @param corporateName corporate name
   */
  private void retrieveOrganization(String corporateName) {
    GridParams gridParams = new GridParams();
    gridParams.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
    gridParams.getOtherGridParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_ORGANIZATION);
    gridParams.getOtherGridParams().put(ApplicationConsts.NAME_1,corporateName);
    Response res = ClientUtils.getData("loadSubjectPerName",gridParams);
    if (!res.isError()) {
      java.util.List vos = ((VOListResponse)res).getRows();
      if (vos.size()==1) {
        // organization found...
View Full Code Here

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

      Response res = discountBean.getDiscountsList(
          rowVO.getCompanyCodeSys01DOC02(),
          discountCodes,
          serverLanguageId,
          new GridParams(),
          username,
          DiscountVO.class
      );

      if (!res.isError()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.