Package com.centraview.common

Examples of com.centraview.common.StringMember


    while( it.hasNext() )
    {
      try
      {
        String str = ( String )it.next();
        StringMember sm = null;
        ListElement ele  = ( ListElement )DL.get( str );
        sm = ( StringMember )ele.get("Subject" );
        sm.setRequestURL("openWindow('/centraview/ViewTicket.do?TYPEOFOPERATION=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"', 'tv', 750, 550, '')");//sets the URL for this member
        sm = ( StringMember )ele.get("AssignedTo" );
        IntMember im = ( IntMember )ele.get("IndividualID" );
        Integer value = (Integer)im.getMemberValue();
        int IndividualID = value.intValue();
        sm.setRequestURL( "openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");//sets the URL for this member
        sm = ( StringMember )ele.get("Entity" );
        im = ( IntMember )ele.get("EntityID" );
        sm.setRequestURL( "openPopup('ViewEntityDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");//sets the URL for this member
      }
      catch(Exception e )
      {
        System.out.println("[Exception][TicketListHandler.setLinksfunction] Exception Thrown: " + e);
      }
View Full Code Here


      //System.out.println("in while");
      try
      {
        String str = ( String )it.next();

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

        IntMember intInventoryID = (IntMember)ele.get("InventoryID");
        int invID = 0;

        if(intInventoryID != null)
        invID = ((Integer)intInventoryID.getMemberValue()).intValue();

        //sets the URL for this member
        url = "goTo('/centraview/DisplayInventory.do?action=edit&inventoryid="+invID+"')";
        intInventoryID.setRequestURL(url);

        Integer intEntityID = (Integer)((IntMember)ele.get("EntityID")).getMemberValue();
        //sets the URL for this member
        sm = ( StringMember )ele.get("Vendor");

        if (intEntityID != null)
        {
          url = "openPopup('ViewEntityDetail.do?rowId="+intEntityID.intValue()+"')";
          sm.setRequestURL(url);
        }


      }catch(Exception e )
      {
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

        for (int i=0;i<invoiceID.length;i++)
        {
          ItemElement ie = new ItemElement();
          IntMember     InvoiceId = new IntMember("InvoiceId",invoiceID[i],'D',"",'T',false,20);
          String invNumStr = "";
          StringMember   InvoiceNum = new StringMember("InvoiceNum",invoiceNum[i],'D',"",'T',false);

          DateFormat   df = new SimpleDateFormat("yyyy-mm-dd") ;
          java.util.Date InvoiceDate = new java.util.Date();
          try{
            InvoiceDate = df.parse(invDateStr[i]) ;
View Full Code Here

              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

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

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

          IntMember imeb = ( IntMember )ele.get("OrderNO" );
          imeb.setRequestURL("goTo('DisplayEditOrder.do?rowId="+((Integer)imeb.getMemberValue()).intValue()+"&listId="+DL.getListID()+"&"+AccountConstantKeys.TYPEOFOPERATION+"=ShowOrder')");

          Integer intEntityID = (Integer)((IntMember)ele.get("EntityID")).getMemberValue();
          sm = ( StringMember )ele.get("Entity");
          if (intEntityID != null)
          {
            String url = "openPopup('ViewEntityDetail.do?rowId="+intEntityID.intValue()+"')";
            sm.setRequestURL(url);
          }


          Integer intindvID = (Integer)((IntMember)ele.get("SalesRepID")).getMemberValue();
          sm = ( StringMember )ele.get("SalesRep");
          if (intindvID != null)
          {
            String url = "openPopup('ViewIndividualDetail.do?rowId="+intindvID.intValue()+"')";
            sm.setRequestURL(url);
          }



        }catch(Exception e )
View Full Code Here

    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    while (it.hasNext())
    {
      String str = (String)it.next();
      StringMember smFF = null;
      StringMember sm = null;
      ListElement ele = (ListElement)DL.get(str);
      int elementID = ele.getElementID();
      smFF = (StringMember)ele.get("CatKB");
      sm = (StringMember)ele.get("Name");
      if ((smFF.getDisplayString()).equals(SupportConstantKeys.CATEGORY))
      {
        sm.setRequestURL("ListKnowledgebase.do?rowId=" + elementID + "&listId=" + DL.getListID());
        smFF.setRequestURL("ListKnowledgebase.do?rowId=" + elementID + "&listId=" + DL.getListID());
      } else if ((smFF.getDisplayString()).equals(SupportConstantKeys.KBELEMENT)) {
        sm.setRequestURL("/centraview/ViewKnowledgeBase.do?rowId=" + elementID + "&listId=" + DL.getListID());
        smFF.setRequestURL("ListKnowledgebase.do?rowId=" + elementID + "&listId=" + DL.getListID());
      }
    }
    return DL;
  }
View Full Code Here

      while (it.hasNext())
      {
        String str = (String)it.next();
        ListElement ele = (ListElement)emailList.get(str);

        StringMember sm = (StringMember)ele.get("Subject");
        if (folderName != null && folderName.equals(MailFolderVO.DRAFTS_FOLDER_NAME))
        {
          sm.setRequestURL("openWindows('" + request.getContextPath() + "/mail/EditDraft.do?messageID=" + ele.getElementID() + "', 720, 585, '')");
        }else if (folderName != null && folderName.equals(MailFolderVO.TEMPLATES_FOLDER_NAME)){
          sm.setRequestURL("openWindows('" + request.getContextPath() + "/mail/TemplateCompose.do?messageID=" + ele.getElementID() + "', 720, 585, '')");
        }else{
          sm.setRequestURL("goTo('" + request.getContextPath() + "/mail/ViewMessage.do?messageID=" + ele.getElementID() + "');");
        }

        sm = (StringMember)ele.get("To");
        String ComposeTo = sm.getDisplayString();
        ComposeTo = ComposeTo.replaceAll("\""," ");
        ComposeTo = ComposeTo.replaceAll("'"," ");
        ComposeTo = ComposeTo.trim();
        sm.setRequestURL("openWindows('" + request.getContextPath() + "/mail/Compose.do?to=" + ComposeTo + "', 720, 585, '')");

        sm = (StringMember)ele.get("From");
        String ComposeFrom = sm.getDisplayString();
        ComposeFrom = ComposeFrom.replaceAll("\""," ");
        ComposeFrom = ComposeFrom.replaceAll("'"," ");
        ComposeFrom = ComposeFrom.trim();
        sm.setRequestURL("openWindows('" + request.getContextPath() + "/mail/Compose.do?to=" + ComposeFrom + "', 720, 585, '')");
      }
      session.setAttribute("currentMailFolder", folderID);
      session.setAttribute("displaylist", emailList);
      request.setAttribute("displaylist", emailList);
      request.setAttribute("list", "Email");
View Full Code Here

      {
        try
        {
          String key = (String)it.next();
          ListElement ele = (ListElement)rulesList.get(key);
          StringMember nameField = (StringMember)ele.get("Name");
          nameField.setRequestURL("goTo('" + request.getContextPath() + "/mail/ViewRule.do?ruleID=" + ele.getElementID() + "')");
        }catch(Exception e){ }
      }

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

      {
        String str = (String) it.next();
        //System.out.println("[DEBUG] [EventListHandler]: " + str);

        ListElement ele = (ListElement) DL.get(str);
        StringMember sm = (StringMember) ele.get("title");
        IntMember im = (IntMember) ele.get("eventid");
        int eventID = ((Integer) im.getMemberValue()).intValue();

        sm.setRequestURL(
          "goTo('ViewEvent.do?TYPEOFOPERATION=EDIT&FromAttendee=NO&eventid=" +
          ((Integer) im.getMemberValue()).intValue() + "')");

        sm = (StringMember) ele.get("ownername");
        im = (IntMember) ele.get("ownerid");
        sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId=" +
          ((Integer) im.getMemberValue()).intValue() + "')");
      }
      catch (Exception e)
      {
        System.out.println("[Exception]: EventListHandler.setLinksfunction: " + e.toString());
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.