Package com.centraview.common

Examples of com.centraview.common.StringMember


              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


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

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

        IntMember intPOID = (IntMember)ele.get("PurchaseOrderID");
        int poID = 0;

        if(intPOID != null)
          poID = ((Integer)intPOID.getMemberValue()).intValue();

        //sets the URL for this member
        intPOID.setRequestURL("goTo('/centraview/DisplayEditPurchaseOrder.do?rowId="+poID+"&"+AccountConstantKeys.TYPEOFOPERATION+"=ShowPurchaseOrder')");

        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("Creator");

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

      }catch(Exception e )
      {
        logger.error("[Exception] PurchaseOrderListHandler.setLinksfunction Handler ", e);
View Full Code Here

      while( it.hasNext() )
      {
        try
        {
          String str = ( String )it.next();
          StringMember sm = null;
          ListElement ele  = ( ListElement )DL.get( str );
          sm = ( StringMember )ele.get("SKU" );
          sm.setRequestURL("goTo('/centraview/DisplayEditItem.do?TYPEOFOPERATION=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");//sets the URL for this member

        }catch(Exception e )
        {
          System.out.println( "ItemList:setLinksfunction"+ e );
        }
View Full Code Here

        //sets the URL for this member
        IntMember order = (IntMember)ele.get("Order");
        order.setRequestURL("goTo('DisplayEditOrder.do?rowId=" + ele.getElementID() + "&listId=" + DL.getListID() + "')");

        //sets the URL for this member
        StringMember cust = (StringMember)ele.get("CustomerID");
        url = "openPopup('ViewEntityDetail.do?rowId=" + ((IntMember)ele.get("CustID")).getMemberValue() + "')";
        cust.setRequestURL(url);

        //sets the URL for this member
        StringMember creator = (StringMember)ele.get("Creator");
        url = "openPopup('ViewEntityDetail.do?rowId=" + ((IntMember)ele.get("CreatorID")).getMemberValue() + "')";
        creator.setRequestURL(url);

      } catch (Exception e)
      {
        logger.error("[setLinksfunction] Exception thrown.", e);
      }
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 );
      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()+"')");
    }

    req.setAttribute("projectlookuplist" , DL );
    session.setAttribute("projectlookuplist", DL);
    req.setAttribute("lookupListName", "projectlookuplist");
View Full Code Here

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

        if ((request.getParameter("folderName") != null) && (request.getParameter("folderName")).equals("Drafts"))
        {
          sm.setRequestURL("openPopup('ComposeEmailHandler.do?action=Drafts&rowId=" + ele.getElementID() + "')");
        }

        else
        {
          sm.setRequestURL("goTo('ViewMailHandler.do?rowId=" + ele.getElementID() + "&listId=" + DL.getListID() + "&index=" + str + "&folderid=" + folderid + "')");
        }
        sm = (StringMember)ele.get("To");

        String ComposeTo = sm.getDisplayString();

        ComposeTo = ComposeTo.replaceAll("\""," ");
        ComposeTo = ComposeTo.replaceAll("'"," ");
    ComposeTo = ComposeTo.trim();

        sm.setRequestURL("openPopup('ComposeEmailHandler.do?composeTo=" + ComposeTo + "')");

        sm = (StringMember)ele.get("From");
        String ComposeFrom = sm.getDisplayString();
        ComposeFrom = ComposeFrom.replaceAll("\""," ");
    ComposeFrom = ComposeFrom.replaceAll("'"," ");
    ComposeFrom = ComposeFrom.trim();

        sm.setRequestURL("openPopup('ComposeEmailHandler.do?composeTo=" + ComposeFrom + "')");

      }
      session.setAttribute("displaylist", DL);
      request.setAttribute("displaylist", DL);
      request.setAttribute("list", "Email");
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

                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 smPrice = (FloatMember)ile.get("Price");
                  Float dp = (Float)smPrice.getMemberValue();
                  float dprice = dp.floatValue();
                  FloatMember smCost = (FloatMember)ile.get("Cost");
                  Float dc = (Float)smCost.getMemberValue();
                  float dcost = dc.floatValue();

                  int id = ile.getElementID();

                  IntMember LineId = new IntMember("LineId", 11, 10, "", 'T', false, 20);
                  IntMember ItemId = new IntMember("ItemId", id, 10, "", 'T', false, 20);
                  StringMember SKU = new StringMember("SKU", sku, 10, "", 'T', false);
                  StringMember Description = new StringMember("Description", name, 10, "", 'T', false);
                  FloatMember Quantity = new FloatMember("Quantity", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember PriceEach = new FloatMember("PriceEach", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember PriceExtended = new FloatMember("PriceExtended", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember UnitTax = new FloatMember("UnitTax", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember TaxRate = new FloatMember("UnitTaxrate", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember OrderQuantity = new FloatMember("OrderQuantity", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember PendingQuantity = new FloatMember("PendingQuantity", new Float(0.0f), 10, "", 'T', false, 20);
                  IntMember Value = new IntMember("Value", 0, 10, "", 'T', false, 20);
                  StringMember Type = new StringMember("Type", "", 10, "", 'T', false);
                  FloatMember DiscountedPrice = new FloatMember("DiscountedPrice", new Float(0.0f), 10, "", 'T', false, 20);
                  FloatMember price = new FloatMember("Price", dp, 10, "", 'T', false, 10);
                  FloatMember cost = new FloatMember("Cost", dc, 10, "", 'T', false, 10);

                  ItemElement ie = new ItemElement(11);
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

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.