Package com.centraview.common

Examples of com.centraview.common.StringMember


    }*/
    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("FileFolder");

      sm = ( StringMember )ele.get("Name" );

      int fol=1;//delete afterwards

      IntMember im = ( IntMember )ele.get("FolderID" );

      if ((smFF.getDisplayString()).equals(FileConstantKeys.FILE))
      {
        sm.setRequestURL("ViewFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
        //smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);
        smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);

      }
      else if ((smFF.getDisplayString()).equals(FileConstantKeys.FOLDER))
      {
        //sm.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);
        //smFF.setRequestURL("ListFile.do?rowId="+elementID+"&listId="+DL.getListID()+"&Type="+fol);

        sm.setRequestURL("ListFile.do?folderId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
        smFF.setRequestURL("ListFile.do?folderId="+elementID+"&listId="+DL.getListID()+"&TYPEOFFILELIST="+fileTypeRequest);
      }

      sm = ( StringMember )ele.get("CreatedBy" );

      IntMember imIndvID = ( IntMember )ele.get("IndividualID" );

      sm.setRequestURL( "javascript:openPopup('ViewIndividualDetail.do?rowId="+((Integer)imIndvID.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");


      Integer value = (Integer)im.getMemberValue();
      int IndividualID = value.intValue();

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

    Iterator it = listkey.iterator();

    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
        ListElement ele = (ListElement)DL.get(str);
        sm = (StringMember)ele.get("Title");
        sm.setRequestURL("c_openWindow('/support/view_thread.do?rowId=" + ele.getElementID() + "', 'view_thread', 715, 445, '');");
        sm = (StringMember)ele.get("CreatedBy");

        IntMember im = (IntMember)ele.get("IndividualID");
        Integer value = (Integer)im.getMemberValue();
        int IndividualID = value.intValue();
        sm.setRequestURL("c_openPopup('/contacts/view_individual.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "');");

        // Set default date format not to print seconds
        DateMember dm = (DateMember)ele.get("Created");
        dm.setDateFormat("MMM d, yyyy hh:mm a");
      } catch (Exception e) {
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("c_openWindow('/projects/view_timeslip.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "', 'view_timeslip', 740, 335, '');");

      sm = (StringMember)ele.get("CreatedBy");

      if (sm != null) {
        im = (IntMember)ele.get("Creator");
        sm.setRequestURL("c_openPopup('/contacts/view_individual.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "');");
      }

      sm = (StringMember)ele.get("Description");
      sm.setLinkEnabled(true);

      if (sm != null) {
        im = (IntMember)ele.get("ID");
        sm.setRequestURL("c_openWindow('/projects/view_timeslip.do?rowId=" + ((Integer)im.getMemberValue()).intValue() + "&ticketId=" + ticketID + "', 'view_timeslip, 740, 335, '');");
      }
    }
    return DL;
  }
View Full Code Here

    while (it.hasNext()) {
      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();
        }

        Integer intIndividualID = (Integer)((IntMember)ele.get("IndividualID")).getMemberValue();

        //sets the URL for this member
        sm = (StringMember)ele.get("Creator");

        if (intIndividualID != null) {
          url = "c_openPopup('/contacts/view_individual.do?rowId=" + intIndividualID.intValue() + "');";
          sm.setRequestURL(url);
        }

        sm = (StringMember)ele.get("Reference");

        if (intIndividualID != null) {
          url = "showExpense(" + expID + ")";
          sm.setRequestURL(url);
        }

        sm.setLinkEnabled(true);
      } catch (Exception e) {
        System.out.println("[Exception] ViewTicketHandler.setExpenseLinks: " + e.toString());
      }
    }
View Full Code Here

      }
      if (cvID.equals("0") || cvID.equals(""))
        continue;
      IntMember ItemId = new IntMember("ItemId", itemId, 'D', "", 'T', false, 20);

      StringMember SKU = new StringMember("SKU", sku, 'D', "", 'T', false);

      String desc = "";
      if (document.getElementsByTagName("Desc").getLength() != 0)
      {
        desc = getValueOfNodeByTagName(document.getFirstChild(), "Desc");
      }

      StringMember Description = new StringMember("Description", desc, 'D', "", 'T', false);

      String qty = "0";

      if (document.getElementsByTagName("Quantity").getLength() != 0)
      {
View Full Code Here

      id = Integer.valueOf(ItemId.getDisplayString()).intValue();
      //itemID = (Integer)ItemId.getMemberValue();
      itemExternalID = getEXIDFromID("Item", id);

      StringMember sku = (StringMember)ele.get("SKU");

      FloatMember qty = (FloatMember)ele.get("Quantity");

      FloatMember priceEach = (FloatMember)ele.get("PriceEach");
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 );
      sm = ( StringMember )ele.get("Name" );
      sm.setRequestURL("openPopup('ViewProjectDetail.do?rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");

      sm = ( StringMember )ele.get("Entity" );
      IntMember im = (IntMember) ele.get("EntityID");
      sm.setRequestURL("openPopup('ViewEntityDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
       }

  }
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("goTo('ViewTimeSheetDetail.do?TYPEOFOPERATION=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");

      sm = ( StringMember )ele.get("Employee" );
      im = (IntMember) ele.get("EmployeeID");
      sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");

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

       }

  }
View Full Code Here

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

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

          IntMember intPaymentID = (IntMember)ele.get("PaymentID");
          int payID = 0;

          if(intPaymentID != null)
          payID = ((Integer)intPaymentID.getMemberValue()).intValue();

          //sets the URL for this member
          url = "goTo('/centraview/DisplayEditPayment.do?action=edit&paymentid="+payID+"')";
          intPaymentID.setRequestURL(url);

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

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

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

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


        }catch(Exception 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.