Package com.centraview.common

Examples of com.centraview.common.StringMember


        String individualName = (String)sqlRow.get("Name");
        int individualID = ((Number)sqlRow.get("IndividualID")).intValue();

        IntMember individualIDfield = new IntMember("IndividualID", individualID, 10, "", 'T', false, 10);

        StringMember nameField = new StringMember("Name", individualName, 10, "/centraview/ViewHandler.do?" + Constants.TYPEOFCONTACT + "=" + Constants.INDIVIDUAL + "&rowId=" + individualID, 'T', true);

        if (moduleName.equals(Constants.ACTIVITYMODULE)) {
          if ((vecView != null) && vecView.contains(new Integer(individualID))) {
            colview.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecSchedule != null) && vecSchedule.contains(new Integer(individualID))) {
            colschedule.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecAll != null) && vecAll.contains(new Integer(individualID))) {
            colAll.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          }
        } else if (moduleName.equals(Constants.EMAILMODULE)) {
          if ((vecView != null) && vecView.contains(new Integer(individualID))) {
            colview.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecSend != null) && vecSend.contains(new Integer(individualID))) {
            colsend.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          } else if ((vecAll != null&& vecAll.contains(new Integer(individualID))) {
            colAll.add(new DDNameValue("" + individualID, nameField.getDisplayString()));
          }
        }
       
        IndividualListElement ele = new IndividualListElement(individualID);
        ele.put("IndividualID", individualIDfield);
View Full Code Here


              ListElement ile = (ListElement)IL.get(nextItr);
              IntMember smid = (IntMember)ile.get("ItemID");
              Integer listItemid = (Integer)smid.getMemberValue();
              if ( listItemid.intValue() == intToken )
              {
                StringMember smName = (StringMember)ile.get("Name"); // name = description
                String name = (String) smName.getMemberValue();

                StringMember smSku  = (StringMember) ile.get("SKU");
                String sku = (String)smSku.getMemberValue();
                FloatMember dmprice  = (FloatMember) ile.get("Price");

                float price = Float.parseFloat((dmprice.getMemberValue()).toString());

                int id = ile.getElementID();

                IntMember LineId = new IntMember("LineId",0,'D',"",'T',false,20);
                IntMember ItemId = new IntMember("ItemId",id,'D',"",'T',false,20);
                IntMember  Quantity = new IntMember("Quantity",1,'D',"",'T',false,20);
                FloatMember  PriceEach = new FloatMember("Price",new Float(price),'D',"",'T',false,20);
                StringMember SKU = new StringMember("SKU",sku,'D',"",'T',false);
                StringMember Description = new StringMember("Description",name,'D',"",'T',false);
                FloatMember  PriceExtended = new FloatMember("PriceExtended",new Float(0.0f),'D',"",'T',false,20);

                ItemElement ie = new ItemElement(0);
                ie.put ("LineId",LineId);
                ie.put ("ItemId",ItemId);
View Full Code Here

        IntMember LineId = new IntMember("LineId",Integer.parseInt(lineid[i]),'D',"",'T',false,20);
        IntMember ItemId = new IntMember("ItemId",Integer.parseInt(itemid[i]),'D',"",'T',false,20);
        IntMember Quantity = new IntMember("Quantity",Integer.parseInt(quantity[i]),'D',"",'T',false,20);
        priceeach[i] = priceeach[i].replaceAll(",","");
        FloatMember  PriceEach = new FloatMember("Price",new Float(priceeach[i]),'D',"",'T',false,20);
        StringMember SKU = new StringMember("SKU",sku[i],'D',"",'T',false);
        StringMember Description = new StringMember("Description",description[i],'D',"",'T',false);
        if(priceExtended[i] != null){
          priceExtended[i] = priceExtended[i].replaceAll(",","");
        }else{
          priceExtended[i] = "";
        }
View Full Code Here

     Set listkey = DL.keySet();
     Iterator it =  listkey.iterator();
        while( it.hasNext() )
         {
       String str = ( String )it.next();
      StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );

      IntMember im = (IntMember) ele.get("ID");
      im.setRequestURL("openWindow('ViewTimeSlipDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"'"+",'', 740,  335,'scrollbars=yes')");
      sm = ( StringMember )ele.get("Project" );
      if ( sm != null)
      {
        im = (IntMember) ele.get("ProjectID");
        sm.setRequestURL("openPopup('ViewProjectDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
      }

      sm = ( StringMember )ele.get("CreatedBy" );
      if ( sm != null)
      {
        im = (IntMember) ele.get("Creator");
        sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
      }

      sm = ( StringMember )ele.get("Task" );
      if ( sm != null)
      {
        im = (IntMember) ele.get("TaskID");
        sm.setRequestURL("openPopup('ViewProjectTaskDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
      }
         }
  }
View Full Code Here

        Iterator it =  listkey.iterator();
        while( it.hasNext() )
        {
          String str = ( String )it.next();

          StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );
          sm = ( StringMember )ele.get("Name" );
          sm.setRequestURL("openPopup('ViewEntityDetail.do?rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");
          sm = ( StringMember )ele.get("PrimaryContact" );
          IntMember im = (IntMember) ele.get("IndividualID");
          sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
          sm = ( StringMember )ele.get("Website");
          sm.setRequestURL("openWindowWithTool('"+sm.getDisplayString()+"')");
          sm = ( StringMember )ele.get("Email" );
          sm.setRequestURL("openWindows('mail/Compose.do?to="+sm.getDisplayString()+"',720,585,'')");
        }

        session.setAttribute( "displaylist" , DL );
        request.setAttribute("displaylist" , DL );
View Full Code Here

        IntMember Quantity = new IntMember("Quantity", Integer.parseInt(quantity[i]), 'D', "", 'T',
            false, 20);
        priceeach[i] = priceeach[i].replaceAll(",", "");
        FloatMember PriceEach = new FloatMember("Price", new Float(priceeach[i]), 'D', "", 'T',
            false, 20);
        StringMember SKU = new StringMember("SKU", sku[i], 'D', "", 'T', false);
        StringMember Description = new StringMember("Description", description[i], 'D', "", 'T',
            false);
        if (priceExtended[i] != null) {
          priceExtended[i] = priceExtended[i].replaceAll(",", "");
        } else {
          priceExtended[i] = "";
View Full Code Here

              ListElement ile = (ListElement)IL.get(nextItr);
              IntMember smid = (IntMember)ile.get("ItemID");
              Integer listItemid = (Integer)smid.getMemberValue();
             
              if (listItemid.intValue() == intToken) {
                StringMember smName = (StringMember)ile.get("Name"); // name = description
                String name = (String)smName.getMemberValue();
               
                StringMember smSku = (StringMember)ile.get("SKU");
                String sku = (String)smSku.getMemberValue();
                FloatMember dmprice = (FloatMember)ile.get("Price");
               
                float price = Float.parseFloat((dmprice.getMemberValue()).toString());
               
                int id = ile.getElementID();
               
                IntMember LineId = new IntMember("LineId", 0, 'D', "", 'T', false, 20);
                IntMember ItemId = new IntMember("ItemId", id, 'D', "", 'T', false, 20);
                IntMember Quantity = new IntMember("Quantity", 1, 'D', "", 'T', false, 20);
                FloatMember PriceEach = new FloatMember("Price", new Float(price), 'D', "", 'T', false, 20);
                StringMember SKU = new StringMember("SKU", sku, 'D', "", 'T', false);
                StringMember Description = new StringMember("Description", name, 'D', "", 'T', false);
                FloatMember PriceExtended = new FloatMember("PriceExtended", new Float(0.0f), 'D', "", 'T', false, 20);
                FloatMember TaxAmount = new FloatMember("TaxAmount", new Float(0.0f), 'D', "", 'T', false, 20);

                ItemElement ie = new ItemElement(0);
                ie.put("LineId", LineId);
View Full Code Here

      Set s = DL.keySet();
      Iterator it = s.iterator();
      while (it.hasNext()) {
        String lim = (String)it.next();
        ListElement ile = (ListElement)DL.get(lim);
        StringMember smName = (StringMember)ile.get("Name");
        String name = (String)smName.getMemberValue();
        IntMember smid = (IntMember)ile.get("IndividualID");
        int id = new Integer(smid.getMemberValue().toString()).intValue();
        // attendeeList.addElement(new DDNameValue(id,name));
        attendeeList.addElement(new DDNameValue("" + id + "#" + name, name));
      }
      put("attendee", attendeeList);
    } else if (listType.equals("allindividual")) {
      IndividualList DL = lg.getIndividualList(individualID, 0, 0, "", "Name");
      DL.setTotalNoOfRecords(DL.size());
      Set s = DL.keySet();
      Iterator it = s.iterator();
      while (it.hasNext()) {
        String lim = (String)it.next();
        ListElement ile = (ListElement)DL.get(lim);
        StringMember smName = (StringMember)ile.get("Name");
        String name = (String)smName.getMemberValue();
        IntMember smid = (IntMember)ile.get("IndividualID");
        int id = new Integer(smid.getMemberValue().toString()).intValue();
        // attendeeList.addElement(new DDNameValue(id,name));
        attendeeList.addElement(new DDNameValue("" + id + "#" + name, name));
      }
View Full Code Here

        String individualName = (String)sqlRow.get("Name");
        int individualID  = ((Number)sqlRow.get("IndividualID")).intValue();

        IntMember individualIDfield = new IntMember("IndividualID", individualID, 10, "", 'T', false, 10);
        StringMember nameField  = new StringMember("Name", individualName, 10, "/centraview/ViewHandler.do?" + Constants.TYPEOFCONTACT + "=" + Constants.INDIVIDUAL  + "&rowId=" + individualID, 'T', true);

        if (vecview != null && vecview.contains(new Long(individualID))) {
          colview.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }else if (vecmodify != null && vecmodify.contains(new Long(individualID))){
          colmodify.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }else if (vecdelete != null && vecdelete.contains(new Long(individualID))){
          coldelete.add(new DDNameValue(""+individualID, nameField.getDisplayString()));
        }

        IndividualListElement ele = new IndividualListElement(individualID);
        ele.put("IndividualID", individualIDfield);
        ele.put("Name", nameField);
View Full Code Here

    {
      try
      {
        String str = ( String )it.next();

        StringMember sm = null;
        ListElement ele  = ( ListElement )DL.get( str );

        IntMember intExpenseID = (IntMember)ele.get("ExpenseID");
        int expID = 0;

        if(intExpenseID != null)
        expID = ((Integer)intExpenseID.getMemberValue()).intValue();

        //sets the URL for this member
        url = "goTo('/centraview/DisplayExpense.do?action=edit&expenseid="+expID+"')";
        intExpenseID.setRequestURL(url);

        Integer intIndividualID = (Integer)((IntMember)ele.get("IndividualID")).getMemberValue();
        //sets the URL for this member
        sm = ( StringMember )ele.get("Creator");

        if (intIndividualID != null)
        {
          url = "openPopup('ViewIndividualDetail.do?rowId="+intIndividualID.intValue()+"')";
          sm.setRequestURL(url);
        }
      }catch(Exception e )
      {
        logger.error("[Exception] ExpenseListHandler.setLinksfunction ", e);
      }
View Full Code Here

TOP

Related Classes of com.centraview.common.StringMember

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.