Package com.centraview.valuelist

Examples of com.centraview.valuelist.Button


    listObject.setCurrentPageParameters(ValueListConstants.AMP+"rowId="+marketingListId);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
   listObject.setMoveTo(false);
     buttonList.add(new Button("Import Members", "Import Members", "vl_addMembers();", false));
  buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
  displayParameters = new ValueListDisplay(buttonList, true, true);

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
View Full Code Here


    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList()
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
View Full Code Here

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('Ticket');", false));
      buttonList.add(new Button("New Ticket", "new", "c_newButton('Ticket', " + moduleID + ")", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("hideMarketingList", new Boolean(true));
      request.setAttribute("dynamicTitle", "Ticket");
      request.setAttribute("lookupType", "Ticket");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_submitAddrs();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    displayParameters.setSortable(false);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
View Full Code Here

    ValueListDisplay displayParameters = null;

    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('File');", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("dynamicTitle", "File");
      request.setAttribute("lookupType", "File");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
View Full Code Here

      listParameters.setFilter(filter);
      ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
      ValueListVO listObject = valueList.getValueList(individualID, listParameters);

      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("New Ticket", "new", "c_goTo('/customer/new_ticket.do');", false));

      ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false, true, true, true, true);
      listObject.setDisplay(displayParameters);
      request.setAttribute("valueList", listObject);
    } catch (Exception e) {
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    // Add the download file column
View Full Code Here

      listObject.setCurrentPageParameters(ValueListConstants.AMP+"eventid="+eventID);
      ArrayList buttonList = new ArrayList();

      ValueListDisplay displayParameters = null;
     listObject.setMoveTo(false);
       buttonList.add(new Button("Add Attendees", "Add Attendees", "vl_addMembers();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    displayParameters = new ValueListDisplay(buttonList, true, true);

      displayParameters.setSortable(true);
      displayParameters.setPagingBar(true);
      displayParameters.setLink(true);
View Full Code Here

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {

    } else {
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
View Full Code Here

    }
    ArrayList buttonList = new ArrayList();
    String standardParams = "listType="+listType+"&listFor="+listFor+"&recordID="+recordId+"&recordName="+recordNameURL;
    String parameters = "";

    Button deleteButton = new Button("Delete", "delete", "vl_deleteList();", false);
   
    if (listType.equals("Activity") || listType.equals("CompletedActivity")) {
      if (listFor.equals("Entity"))
      {
        parameters = "?entityID="+recordId+"&entityName="+recordNameURL;
      } else if (listFor.equals("Individual")) {
        parameters = "?entityID="+parentId+"&entityName="+parentNameURL+"&individualID="+recordId+"&individualName="+recordNameURL;
      } else if (listFor.equals("Opportunity")) {
        parameters = "?entityID="+parentId+"&entityName="+parentNameURL+"oppID="+recordId+"oppName="+recordNameURL;
      } else if(listFor.equals("Project")) {
        parameters = "?ProjectID="+recordId+"&ProjectTitle="+recordNameURL+"&entityName="+parentNameURL+"&entityID="+parentId;
      }
      buttonList.add(new Button("New Activity", "new", "c_openWindow('/activities/activity_dispatch.do" + parameters.toString()+ "', 'sched_act', 780, 580, '');", false));
      buttonList.add(deleteButton);
    } else if (listType.equals("Individual")) {
      if(listFor.equals("Entity")) {
        parameters = "entityName="+recordNameURL+"&entityNo="+recordId;
      } else if(listFor.equals("Opportunities")) {
        parameters = "entityName="+parentNameURL+"&entityNo="+parentId;
      }
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("New Individual", "new", "c_openWindow('/contacts/new_individual.do?"+parameters+"', 'newIndividual', 729, 301, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Address")) {
      buttonList.add(new Button("New Address", "new", "c_goTo('/contacts/new_related_address.do?"+standardParams+"');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("ContactMethod")) {
      buttonList.add(new Button("New Contact Method", "new", "c_goTo('/contacts/new_contact_method.do?"+standardParams+"');", false));
      buttonList.add(deleteButton);
    }else if(listType.equals("EmailHistory")) {
      buttonList.add(new Button("Compose", "new", "c_openWindow('/email/compose.do','',720,585,'');", false));
    } else if(listType.equals("Note")) {
      parameters = "?TYPEOFOPERATION=ADD&bottomFrame=true";
      if (listFor.equals("Opportunity")) {
        parameters += "&" + standardParams;
      } else if (listFor.equals("Individual")) {
        parameters += "&entityname="+parentNameURL+"&entityid="+parentId+"&individualid="+recordId+"&individualname="+recordNameURL+"&"+standardParams;
      } else if (listFor.equals("Entity")) {
        parameters += "&entityname="+recordNameURL+"&entityid="+recordId+"&"+standardParams;
      }
      if (!listFor.equals("Projects")) {  // for some reason currently you cannot create a new note on project details screen
        buttonList.add(new Button("New Note", "new", "c_goTo('/notes/new_note.do"+parameters+"&TYPEOFOPERATION=ADD');", false));
      }
      buttonList.add(deleteButton);
    } else if(listType.equals("Ticket")) {
      if (listFor.equals("Individual")) {
        parameters = "?individualname="+recordNameURL+"&individualid="+recordId+"&entityname="+parentNameURL+"&entityid="+parentId;
      } else if(listFor.equals("Entity")) {
        parameters = "?entityname="+recordNameURL+"&entityid="+recordId;
      }
      buttonList.add(new Button("New Ticket", "new", "c_openWindow('/support/new_ticket.do"+parameters+"','',715,445,'');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Proposal")) {
      if (listFor.equals("Individual")) {
        parameters = "?individual="+recordNameURL+"&individualid="+recordId;
      } else if (listFor.equals("Opportunities")) {
        parameters = "?oppTitle="+recordNameURL+"&oppId="+recordId;
      }else{
        // hmm... for some reason, the related Proposals list for Opportunity detail has a bum listFor value.
        parameters = "?oppTitle=" + recordNameURL + "&oppId=" + recordId;
      }
      buttonList.add(new Button("New Proposal", "new", "c_openWindow('/sales/new_proposal.do"+parameters+"', '', 715, 445, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Opportunity")) {
      if (listFor.equals("Entity")) {
        parameters = "?entityname="+recordNameURL+"&entityid="+recordId;
      } else if(listFor.equals("Individual")) {
        parameters = "?individualname="+recordNameURL+"&individualid="+recordId+"&entityname="+parentNameURL+"&entityid="+parentId;
      }
      buttonList.add(new Button("New Opportunity", "new", "c_openWindow('/sales/new_opportunity.do"+parameters+"', '', 715, 445, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Project")) {
      if (listFor.equals("Entity")) {
        parameters = "?entityname="+recordNameURL+"&entityid="+recordId;
      } else if(listFor.equals("Individual")) {
        parameters = "?contact="+recordNameURL+"&contactID="+recordId+"&entityname="+parentNameURL+"&entityid="+parentId;
      }
      buttonList.add(new Button("New Project", "new", "c_openWindow('/projects/new_project.do"+parameters+"', '', 715, 445, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("File")) {
      parameters = "?BottomFile=true";
      if (listFor.equals("Entity")) {
        parameters += "&entityname="+recordNameURL+"&entityid="+recordId;
      } else if(listFor.equals("Individual")) {
        parameters += "&individualname="+recordNameURL+"&individualid="+recordId+"&entityname="+parentNameURL+"&entityid="+parentId;
      } else if(listFor.equals("Project")) {
        parameters += "&ProjectTitle="+recordNameURL+"&ProjectID="+recordId;
      }
      buttonList.add(new Button("New File", "new", "c_openWindow('/files/file_new.do"+parameters+"', '', 715, 445, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Task")) {
      parameters = "?projectname="+recordNameURL+"&projectid="+recordId;
      buttonList.add(new Button("New Task", "new", "c_openWindow('/projects/new_task.do"+parameters+"', '', 730, 360, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Timeslip")) {
      parameters = "?projectname="+recordNameURL+"&projectid="+recordId;
      buttonList.add(new Button("New Timeslip", "new", "c_openWindow('/projects/new_timeslip.do"+parameters+"', '', 730, 360, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Contact")) {
      parameters = "entityName="+parentNameURL+"&entityNo="+parentId;
      buttonList.add(new Button("New Individual", "new", "c_openWindow('/contacts/new_individual.do"+parameters+"', '', 729, 301, '');", false));
      buttonList.add(deleteButton);
    } else if(listType.equals("Order")) {
      buttonList.add(new Button("New Order", "new", "c_showMainWindow('/accounting/new_order.do', '', 729, 301, '');", false));
    }
    return buttonList;
  }
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.Button

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.