Package com.centraview.common

Examples of com.centraview.common.IntMember


    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


        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
View Full Code Here

            itr = itemLines.keySet().iterator();
            while (itr.hasNext())
            {
              Object obj = itr.next();
              ItemElement ILE = (ItemElement)itemLines.get(obj);
              IntMember ItemId = (IntMember)ILE.get("ItemId");
              Integer currItemId = (Integer)ItemId.getMemberValue();
              if ( currItemId.intValue() == removeToken)
              {
                String status = ILE.getLineStatus();
                if (status.equals("Active"))
                {
                  ILE.setLineStatus("Deleted");
                }//end of if (status.equals("Active"))
                else  if (status.equals("New"))
                {
                  removeKeys.add(obj);
                }//end of else  if (status.equals("New"))
              }//end of if ( currItemId.intValue() == removeToken)
            }//end of while (itr.hasNext())
          }//end of while (st.hasMoreTokens())

          for(int i=0; i<removeKeys.size(); i++)
          {
            itemLines.remove(removeKeys.get(i));
          }// end of for(int i=0; i<removeKeys.size(); i++)
        }//end of if (itemLines != null)

        expenseForm.setItemLines(itemLines);
        request.setAttribute("expenseform",expenseForm);

      }// end of if(typeOfOperation != null &&  typeOfOperation.equals("REMOVEITEM") )
      /*  ADD item  */
      else if(typeOfOperation != null && typeOfOperation.equals("ADDITEM") )
      {
        String newItemID = request.getParameter("theitemid");
        ItemList IL = null ;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);//get the List Generator object for Listing
        IL = (ItemList )lg.getItemList( individualID , 1, 10 , "" , "ItemID");//called when the request for the list is for first time

        StringTokenizer st;
        String token, nextItr;

        if (newItemID != null)
        {
          st = new StringTokenizer(newItemID, ",");
          itemLines = (expenseForm).getItemLines();

          if(itemLines == null)
            itemLines = new ItemLines();
          int counter = itemLines.size();
          while (st.hasMoreTokens())
          {
            token   = (String)st.nextToken();
            int intToken = Integer.parseInt(token);
            Iterator itr = IL.keySet().iterator();
            while (itr.hasNext())
            {
              nextItr = (String)itr.next();
              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);

View Full Code Here

        if (!cvID.equals(""))
          itemId = Integer.parseInt(cvID);
      }
      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)
View Full Code Here

      itemID = Integer.valueOf(obj.toString());

      ItemElement ele = (ItemElement)itemLines.get(itemID.toString());

      IntMember ItemId = (IntMember)ele.get("ItemId");

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

      StringMember sku = (StringMember)ele.get("SKU");
View Full Code Here

          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

      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

          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");
View Full Code Here

        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

        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");
View Full Code Here

TOP

Related Classes of com.centraview.common.IntMember

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.