Package nz.co.transparent.client.controller

Examples of nz.co.transparent.client.controller.SpecificController


   
    Map clientMap = null;
    Map contactDetailMap = null;
//    InputStream is = getClass().getResourceAsStream("CardReport.jasper");
    GenericController genericController = GenericController.getInstance();
    SpecificController specificController = SpecificController.getInstance();
   
    try {
      clientMap = genericController.findWhere("client", "client_id=" + clientID);
    } catch (FinderException fe) {
      throw new ControllerException("No client record found");
    }

    contactDetailMap = specificController.findDefaultContactDetails(clientID);
    Map reportMap = new HashMap();
    reportMap.put("LastName", clientMap.get("last_name"));
    StringBuffer firstNames = new StringBuffer();

    if (clientMap.get("first_name") != null) {
View Full Code Here


*/
public class TestSpecificController {
 
  private void go() {

    SpecificController controller = SpecificController.getInstance();
    GenericTableModel clientTableModel = null;
   
    try {
      //ClientTableModel clientTableModel = nz.co.transparent.client.controller.getClients("", "", "", 30);
      //ClientTableModel clientTableModel = nz.co.transparent.client.controller.getClients("Smith", "", "", 30);
      //ClientTableModel clientTableModel = nz.co.transparent.client.controller.getClients("", "Jane", "", 30);
      //ClientTableModel clientTableModel = nz.co.transparent.client.controller.getClients("", "", "0001", 30);
      StringBuffer maxPassed = new StringBuffer();
      Map searchMap = new HashMap(3);
      searchMap.put("last_name", "Smith");
      searchMap.put("first_name", "J");
      searchMap.put("contact_detail", "");
      clientTableModel.setMapList(controller.findClients(searchMap, 30, maxPassed));
     
      for (int i=0; i<clientTableModel.getRowCount(); i++) {
        System.out.println("client_id: " + clientTableModel.getValueAt(i, 0));
        System.out.println("   last_name: " + clientTableModel.getValueAt(i, 1));
        System.out.println("   first_name: " + clientTableModel.getValueAt(i, 2));
View Full Code Here

    }

    Map clientMap = null;
    Map titleMap = null;
    GenericController genericController = GenericController.getInstance();
    SpecificController specificController =
      SpecificController.getInstance();

    try {
      clientMap =
        genericController.findWhere("client", "client_id=" + clientID);
View Full Code Here

TOP

Related Classes of nz.co.transparent.client.controller.SpecificController

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.