Package com.centraview.common

Examples of com.centraview.common.IntMember


        while (it.hasNext()) {
          i++;
          HashMap hm = (HashMap) it.next();
          int custfieldID = ((Long) hm.get("customfieldid")).intValue();
          try {
            IntMember intCustFieldID = new IntMember("CustomFieldID", custfieldID, 10, "", 'T', false, 10);
            StringMember strName = null;
            if ((hm.get("name") != null)) {
              strName = new StringMember("Name", (String) hm.get("name"), 10, "", 'T', true);
            } else {
              strName = new StringMember("Name", null, 10, "", 'T', true);
View Full Code Here


          entityID = ((Long) hm.get("EntityID")).intValue();
        }

        try
        {
          IntMember intInvID =
            new IntMember("InventoryID", invID, 10, null, 'T', true, 10);
          IntMember intEntityID =
            new IntMember("EntityID", entityID, 10, null, 'T', false, 10);

          StringMember strItemName = null;

          if ((hm.get("ItemName") != null))
          {
View Full Code Here

        HashMap hm = (HashMap) it.next();
        int id = ((Long) hm.get("itemid")).intValue();

        try
        {
          IntMember intListID =
            new IntMember("ItemID", id, 10, "", 'T', false, 10);

          StringMember strSku = null;

          if ((hm.get("sku") != null))
          {
            strSku =
              new StringMember("SKU", (String) hm.get("sku"), 10, "", 'T', true);
          }
          else
          {
            strSku = new StringMember("SKU", null, 10, "", 'T', true);
          }

          StringMember strName =
            new StringMember("Name", (String) hm.get("Name"), 10, "", 'T', false);

          //          StringMember strCatagory = new StringMember("Category", (String)hm.get("categoryname"), 10, "", 'T', false);new Float(((Double) hm.get( "cost" )).floatValue())
          StringMember strType =
            new StringMember("Type", (String) hm.get("type"), 10, "", 'T', false);

          FloatMember price = null;

          if (hm.get("Price") != null)
          {
            price =
              new FloatMember("Price",
                new Float(Float.parseFloat((hm.get("Price")).toString())), 10,
                "", 'T', false, 10);
          }
          else
          {
            price =
              new FloatMember("Price", new Float(0), 10, "", 'T', false, 10);
          }

          DoubleMember intQty = null;

          if (hm.get("OnHand") != null)
          {
            intQty =
              new DoubleMember("OnHand",
                new Double(Double.parseDouble((hm.get("OnHand")).toString())),
                10, "", 'T', false, 10);
          }
          else
          {
            intQty =
              new DoubleMember("OnHand", new Double(0), 10, "", 'T', false, 10);
          }

          StringMember strtaxClass =
            new StringMember("TaxClass", (String) hm.get("taxclass"), 10, "",
              'T', false);


          int taxClassId = ((Number) hm.get("taxclassid")).intValue();

          IntMember intTaxClassID = new IntMember("TaxClassID", taxClassId, 10, "", 'T', false, 10);

          FloatMember cost =
            new FloatMember("Cost",
              new Float(Float.parseFloat((hm.get("cost")).toString())), 10, "",
              'T', false, 10);

          //Added by Shilpa for getting Manufacture and Vendor for item
          int manid = 0;
          int venid = 0;

          if (hm.get("manid") != null)
          {
            manid = ((Long) hm.get("manid")).intValue();
          }

          IntMember manufacturerID =
            new IntMember("ManufacturerID", manid, 10, "", 'T', false, 10);

          if (hm.get("vendorid") != null)
          {
            venid = ((Long) hm.get("vendorid")).intValue();
          }

          IntMember vendorID =
            new IntMember("VendorID", venid, 10, "", 'T', false, 10);

          StringMember strVendor = null;
          StringMember strManufacturer = null;

          if (hm.get("vendor") != null)
View Full Code Here

        HashMap hm = (HashMap) it.next();
        int id = ((Long) hm.get("OrderNO")).intValue();

        try
        {
          IntMember intListID =
            new IntMember("OrderID", id, 10, "", 'T', false, 10);

          IntMember intorderNo =
            new IntMember("OrderNO", id, 10, "", 'T', true, 10);

          OrderListElement listElement = new OrderListElement(id);

          StringMember strentityName =
            new StringMember("Entity", (String) hm.get("Entity"), 10, "", 'T',
              true);

          id = ((Long) hm.get("entityid")).intValue();

          IntMember entityID =
            new IntMember("EntityID", id, 10, "", 'T', false, 10);

          DateMember date =
            new DateMember("Date",
              new Date(((Timestamp) hm.get("date")).getTime()), 10, "", 'T',
              false, 1, timezoneid);

          DoubleMember total =
            new DoubleMember("Total",
              new Double(Double.parseDouble(hm.get("total").toString())), 10,
              "", 'T', false, 10);

          id = ((Long) hm.get("accountmgr")).intValue();

          IntMember saleID =
            new IntMember("SalesRepID", id, 10, "", 'T', false, 10);

          StringMember salesrep =
            new StringMember("SalesRep", (String) hm.get("salesrep"), 10, "",
              'T', true);
          StringMember status =
View Full Code Here

            new Double(Double.parseDouble(hm.get("AmountPaid").toString()));
        }

        try
        {
          IntMember intInvID =
            new IntMember("InvoiceID", invID, 10, null, 'T', true, 10);

          IntMember intOrderID = null;

          if (hm.get("OrderID") != null)
          {
            int oID = Integer.parseInt(hm.get("OrderID").toString());
            intOrderID = new IntMember("Order", oID, 10, null, 'T', true, 10);
          }

          StringMember strCustID = null;

          if (hm.get("CustomerID") != null)
          {
            strCustID =
              new StringMember("CustomerID", (String) hm.get("CustomerID"), 10,
                null, 'T', true);
          }
          else
          {
            strCustID =
              new StringMember("CustomerID", null, 10, null, 'T', true);
          }

          DateMember date = null;

          if (hm.get("InvoiceDate") != null)
          {
            date =
              new DateMember("InvoiceDate", (Date) hm.get("InvoiceDate"), 10,
                null, 'T', false, 10, "EST");
          }
          else
          {
            date =
              new DateMember("InvoiceDate", null, 10, null, 'T', false, 10,
                "EST");
          }

          DoubleMember dblAmount =
            new DoubleMember("Total", amount, 10, null, 'T', false, 10);

          StringMember strPaid = null;

          double amt = 0;

          if (amount != null)
          {
            amt = amount.doubleValue();
          }

          double amtPaid = 0;

          if (amountPaid != null)
          {
            amtPaid = amountPaid.doubleValue();
          }

          int result = 0;

          if ((amount != null) && (amountPaid != null))
          {
            result = amount.compareTo(amountPaid);
          }

          if (result == 0)
          {
            strPaid = new StringMember("Paid", "Yes", 10, null, 'T', false);
          }
          else if ((result > 0) && (amtPaid > 0))
          {
            strPaid = new StringMember("Paid", "Partial", 10, null, 'T', false);
          }
          else
          {
            strPaid = new StringMember("Paid", "No", 10, null, 'T', false);
          }

          StringMember strCreator = null;

          if (hm.get("Creator") != null)
          {
            strCreator =
              new StringMember("Creator", (String) hm.get("Creator"), 10, null,
                'T', true);
          }
          else
          {
            strCreator = new StringMember("Creator", null, 10, null, 'T', true);
          }

          int creatorID = 0;

          if (hm.get("CreatorID") != null)
          {
            creatorID = ((Long) hm.get("CreatorID")).intValue();
          }

          int custID = 0;

          if (hm.get("CustID") != null)
          {
            custID = ((Long) hm.get("CustID")).intValue();
          }

          InvoiceListElement invListElement = new InvoiceListElement(invID);

          invListElement.put("InvoiceID", intInvID);
          invListElement.put("Order", intOrderID);
          invListElement.put("CustomerID", strCustID);
          invListElement.put("CustID",
            new IntMember("CustID", custID, 10, null, 'T', true, 10));
          invListElement.put("InvoiceDate", date);
          invListElement.put("Total", dblAmount);
          invListElement.put("Paid", strPaid);
          invListElement.put("Creator", strCreator);
          invListElement.put("CreatorID",
            new IntMember("CreatorID", creatorID, 10, null, 'T', true, 10));

          StringBuffer stringbuffer = new StringBuffer("00000000000");
          stringbuffer.setLength(11);

          String s3 = (new Integer(i)).toString();
View Full Code Here

          amount = new Double(Double.parseDouble(hm.get("Amount").toString()));
        }

        try
        {
          IntMember intExpID =
            new IntMember("ExpenseID", expenseID, 10, null, 'T', true, 10);
          IntMember intIndID =
            new IntMember("IndividualID", indID, 10, null, 'T', false, 10);
          DoubleMember dblAmount =
            new DoubleMember("Amount", amount, 10, "", 'T', false, 10);

          DateMember submitedDt =
            new DateMember("Created", (Date) hm.get("Created"), 10, "", 'T',
View Full Code Here

          total = new Double(Double.parseDouble((hm.get("Total")).toString()));
        }

        try
        {
          IntMember intPOID =
            new IntMember("PurchaseOrderID", poID, 10, null, 'T', true, 10);
          IntMember intIndID =
            new IntMember("IndividualID", indID, 10, null, 'T', true, 10);
          IntMember intEntityID =
            new IntMember("EntityID", entityID, 10, null, 'T', true, 10);

          DoubleMember dblSubTotal =
            new DoubleMember("SubTotal", subTotal, 10, "", 'T', false, 10);
          DoubleMember dblTax =
            new DoubleMember("Tax", tax, 10, "", 'T', false, 10);
View Full Code Here

            new Double(Double.parseDouble(hm.get("UnAppliedAmount").toString()));
        }

        try
        {
          IntMember intPayID =
            new IntMember("PaymentID", paymentID, 10, null, 'T', true, 10);
          IntMember intIndID =
            new IntMember("IndividualID", indID, 10, null, 'T', false, 10);
          IntMember intEntID =
            new IntMember("EntityID", entityID, 10, null, 'T', false, 10);

          DoubleMember dblAmount =
            new DoubleMember("AmountPaid", amount, 10, "", 'T', false, 10);
          DoubleMember dblAppAmt =
            new DoubleMember("AppliedAmount", appliedAmt, 10, "", 'T', false, 10);
View Full Code Here

        HashMap hm = (HashMap) it.next();
        int id = Integer.parseInt((hm.get("locationid")).toString());

        try
        {
          IntMember intListID =
            new IntMember("LocationID", id, 10, "", 'T', false, 10);

          StringMember strName =
            new StringMember("Name", (String) hm.get("title"), 10, "", 'T',
              false);

          IntMember parent =
            new IntMember("LocationParent",
              Integer.parseInt((hm.get("locationid")).toString()), 10, "", 'T',
              false, 10);

          LocationListElement listElement = new LocationListElement(id);
View Full Code Here

    while (it.hasNext()) {
      i++;
      HashMap hm = (HashMap)it.next();

      int ID = ((Long)hm.get("eventid")).intValue();
      IntMember eventid = new IntMember("eventid", ID, 10, "", 'T', false, 10);
      StringMember title = new StringMember("title", (String)hm.get("title"), 10, "", 'T', true);
      StringMember detail = new StringMember("detail", (String)hm.get("detail"), 10, "", 'T', false);
      DateMember start = new DateMember("start", (java.util.Date)hm.get("start"), 10, "URL", 'T',
          false, 100, "EST");
      DateMember end = new DateMember("end", (java.util.Date)hm.get("end"), 10, "URL", 'T', false,
          100, "EST");
      StringMember ownername = new StringMember("ownername", (String)hm.get("ownername"), 10, "",
          'T', true);
      // Object test = hm.get("registeredattendees");
      int regAtt = ((Number)hm.get("registeredattendees")).intValue();
      IntMember registeredattendees = new IntMember("registeredattendees", regAtt, 10, "", 'T',
          false, 10);
      int ownrid = ((Long)hm.get("owner")).intValue();
      IntMember ownerid = new IntMember("ownerid", ownrid, 10, "", 'T', false, 10);

      EventListElement ele = new EventListElement(ID);

      ele.put("eventid", eventid);
      ele.put("title", title);
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.