Package com.centraview.common

Examples of com.centraview.common.StringMember


    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() + "')");
    } //end of while loop (it.hasNext())
  } //end of method setLinks
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);
                  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

              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

              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

       
        while (itr.hasNext()) {
          ItemElement ie2 = (ItemElement)itemLines.get(itr.next());
          IntMember LineId = (IntMember)ie2.get("LineId");
          IntMember ItemId = (IntMember)ie2.get("ItemId");
          StringMember SKU = (StringMember)ie2.get("SKU");
          StringMember Description = (StringMember)ie2.get("Description");
          IntMember Quantity = (IntMember)ie2.get("Quantity");
          FloatMember PriceEach = (FloatMember)ie2.get("Price");
          FloatMember PriceExtended = (FloatMember)ie2.get("PriceExtended");
          FloatMember taxAmount = (FloatMember)ie2.get("TaxAmount");
          com.centraview.account.common.ItemElement ie = new com.centraview.account.common.ItemElement(counter);
View Full Code Here

    CVDal dl = new CVDal(this.dataSource);
    try
    {
      IntMember lineid = ( IntMember )ele.get("LineId");
      IntMember itemid = ( IntMember )ele.get("ItemId");
      StringMember sku   = ( StringMember )ele.get("SKU");
      IntMember qty   = ( IntMember )ele.get("Quantity");
      FloatMember priceEach = ( FloatMember )ele.get("Price");
      StringMember desc   = ( StringMember )ele.get("Description");
      String status    = ele.getLineStatus();

      int quantity = ((Number) qty.getMemberValue()).intValue();
      float price =  ((Number) priceEach.getMemberValue()).floatValue();
      int itemID = ((Number)itemid.getMemberValue()).intValue();

      dl.setSql("purchaseorder.addpurchaseorderitem");
      dl.setInt(1,purchaseorderID);
      dl.setInt(2,itemID );
      dl.setInt(3,quantity);
      dl.setFloat(4,((Float)priceEach.getMemberValue()).floatValue());
      dl.setString(5,(String)sku.getMemberValue());
      dl.setString(6,(String)desc.getMemberValue());
      dl.executeUpdate();
      dl.clearParameters();
    }
    catch(Exception e)
    {
View Full Code Here

    try
    {

      IntMember lineid = ( IntMember )ele.get("LineId");
      IntMember itemid = ( IntMember )ele.get("ItemId");
      StringMember sku   = ( StringMember )ele.get("SKU");
      IntMember qty   = ( IntMember )ele.get("Quantity");
      FloatMember priceEach = ( FloatMember )ele.get("Price");
      StringMember desc   = ( StringMember )ele.get("Description");
      String status    = ele.getLineStatus();

      int quantity = ((Number) qty.getMemberValue()).intValue();
      float price =  ((Number) priceEach.getMemberValue()).floatValue();
      int itemID = ((Number)itemid.getMemberValue()).intValue();

      dl.setSql("purchaseorder.updatepurchaseorderitem");
      dl.setInt(1, itemID);
      dl.setInt(2,quantity);
      dl.setFloat(3,price);
      dl.setString(4,(String)sku.getMemberValue());
      dl.setString(5,(String)desc.getMemberValue());
      dl.setInt(6,((Integer)lineid.getMemberValue()).intValue() );
      dl.setInt(7,purchaseorderID);

      dl.executeUpdate();
      dl.clearParameters();
View Full Code Here

          IntMember LineId = new IntMember("LineId",lineID,'D',"",'T',false,20);
          IntMember ItemId = new IntMember("ItemId",itemID,'D',"",'T',false,20);
          IntMember Quantity = new IntMember("Quantity",quantity,'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",description,'D',"",'T',false);
          FloatMember  PriceExtended = new FloatMember("PriceExtended",new Float(priceExtended),'D',"",'T',false,20);

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

          IntMember LineId = new IntMember("LineId",1,10,"",'T',false,20);

          Long invID = (Long)hm.get("invoiceid");
          IntMember invoiceID = new IntMember("InvoiceId",invID.intValue(),10,"",'T',false,20);

          StringMember invoiceNum = null;
          /*
          if(hm.get("invoicetitle") != null)
          */
          invoiceNum = new StringMember("InvoiceNum", invID+"",10,"",'T',false);

          DateMember invDate = new DateMember( "Date" , (Date)hm.get("invoicedate",10 , "" , 'T' , false ,1 ,"EST" );


          Double total = new Double(0);
View Full Code Here

  private void addOrderItem(ItemElement ele, int orderID)
  {
    CVDal dl = new CVDal(this.dataSource);
    try {
      IntMember itemid = (IntMember) ele.get("ItemId");
      StringMember sku = (StringMember) ele.get("SKU");
      IntMember qty = (IntMember) ele.get("Quantity");
      FloatMember priceEach = (FloatMember) ele.get("Price");
      StringMember desc = (StringMember) ele.get("Description");

      int quantity = ((Number) qty.getMemberValue()).intValue();
      float price = ((Number) priceEach.getMemberValue()).floatValue();
      int itemID = ((Number) itemid.getMemberValue()).intValue();

      InitialContext ic = CVUtility.getInitialContext();
      AccountHelperLocalHome home = (AccountHelperLocalHome) ic.lookup("local/AccountHelper");
      AccountHelperLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      int taxClassID = remote.getTaxClassID(itemID);

      Integer jurisdictionID = this.orderForm.getJurisdictionID();
      int taxJurisdictionId = 0;
      if (jurisdictionID != null) {
        taxJurisdictionId = jurisdictionID.intValue();
      }
      float taxRate = 0;
      if (taxClassID != -1 && taxJurisdictionId != 0) {
        taxRate = remote.getTax(taxClassID, taxJurisdictionId);
      }// if (taxJurisdictionId !=0)

      float taxTotal = ((quantity * price) * (taxRate / 100));

      dl.setSql("order.addorderitem");
      dl.setInt(1, orderID);
      dl.setInt(2, itemID);
      dl.setInt(3, quantity);
      dl.setFloat(4, ((Float) priceEach.getMemberValue()).floatValue());
      dl.setString(5, (String) sku.getMemberValue());
      dl.setString(6, (String) desc.getMemberValue());
      dl.setFloat(7, taxTotal);
      dl.executeUpdate();
      dl.clearParameters();
    } catch (Exception e) {
      logger.error("[addOrderItem]: 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.