Package com.centraview.common

Examples of com.centraview.common.StringMember


          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 =
            new StringMember("Status", (String) hm.get("status"), 10, "", 'T',
              false);
          DoubleMember discount =
            new DoubleMember("Discount", (Double) hm.get("Discount"), 10, "",
              'T', false, 10);
          StringMember creator =
            new StringMember("Creator", (String) hm.get("creator"), 10, "",
              'T', false);
          StringMember poNumber =
            new StringMember("PONumber", (String) hm.get("ponumber"), 10, "",
              'T', false);

          listElement.put("OrderID", intListID);
          listElement.put("OrderNO", intorderNo);
          listElement.put("Entity", strentityName);
View Full Code Here


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

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

          StringMember strReference = null;

          if ((hm.get("Reference") != null))
          {
            strReference =
              new StringMember("Reference", (String) hm.get("Reference"), 10,
                null, 'T', false);
          }
          else
          {
            strReference =
              new StringMember("Reference", null, 10, null, 'T', false);
          }

          StringMember strStatus =
            new StringMember("Status", (String) hm.get("Status"), 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', false);
          }

          ExpenseListElement expListElement = new ExpenseListElement(expenseID);

          expListElement.put("ExpenseID", intExpID);
View Full Code Here

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

          StringMember strEntity = null;

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

          StringMember strStatus =
            new StringMember("Status", (String) hm.get("Status"), 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', false);
          }

          PurchaseOrderListElement poListElement =
            new PurchaseOrderListElement(poID);
View Full Code Here

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

          StringMember strReference = null;

          if ((hm.get("Reference") != null))
          {
            strReference =
              new StringMember("Reference", (String) hm.get("Reference"), 10,
                null, 'T', false);
          }
          else
          {
            strReference =
              new StringMember("Reference", null, 10, null, 'T', false);
          }

          StringMember strMethod =
            new StringMember("PaymentMethod", (String) hm.get("PaymentMethod"),
              10, null, 'T', false);

          StringMember strEnteredBy = null;

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

          StringMember strEntity = null;

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

          PaymentListElement payListElement = new PaymentListElement(paymentID);

          payListElement.put("PaymentID", intPayID);
View Full Code Here

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

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

      i++;
      HashMap hm = (HashMap)it.next();

      int ID = ((Long)hm.get("promotionid")).intValue();
      IntMember promotionid = new IntMember("promotionid", ID, 10, "", 'T', false, 10);
      StringMember title = new StringMember("title", (String)hm.get("title"), 10, "", 'T', true);
      StringMember description = new StringMember("description", (String)hm.get("description"), 10,
          "", 'T', false);
      DateMember startdate = new DateMember("startdate", (java.util.Date)hm.get("startdate"), 10,
          "URL", 'T', false, 100, "EST");
      DateMember enddate = new DateMember("enddate", (java.util.Date)hm.get("enddate"), 10, "URL",
          'T', false, 100, "EST");
      StringMember status = new StringMember("status", (String)hm.get("status"), 10, "", 'T', false);
      // int nooforder = ((Long)hm.get("nooforder")).intValue();
      int nooforder = Integer.parseInt(hm.get("ordercount").toString());
      IntMember nooforders = new IntMember("nooforders", nooforder, 10, "", 'T', false, 10);

      PromotionListElement ele = new PromotionListElement(ID);
View Full Code Here

          // int entityIntID = ((Long) hashMap.get("EntityID")).intValue();
          // int individualIntID = ((Long)
          // hashMap.get("IndividualID")).intValue();

          StringMember entityID;
          StringMember individualID;

          if (hashMap.get("EntityID") != null) {
            entityID = new StringMember("EntityID", ((Long)hashMap.get("EntityID")).toString(), 10,
                "", 'T', true);
          } else {
            entityID = new StringMember("EntityID", null, 10, "", 'T', true);
          }

          if (hashMap.get("IndividualID") != null) {
            individualID = new StringMember("IndividualID", ((Long)hashMap.get("IndividualID"))
                .toString(), 10, "", 'T', true);
          } else {
            individualID = new StringMember("IndividualID", null, 10, "", 'T', true);
          }

          StringMember entityName = new StringMember("Entity", (String)hashMap.get("Entity"), 10,
              "", 'T', true);
          StringMember individualName = new StringMember("Individual", (String)hashMap
              .get("Individual"), 10, "", 'T', true);
          StringMember emailAddress = new StringMember("Email", (String)hashMap.get("Email"), 10,
              "", 'T', true);
          StringMember phoneNumber = new StringMember("PhoneNumber", (String)hashMap
              .get("PhoneNumber"), 10, "", 'T', false);

          MarketingListMemberListElement currentElement = new MarketingListMemberListElement(i);

          currentElement.put("EntityID", entityID);
View Full Code Here

      i++;
      HashMap hm = (HashMap)it.next();

      int ID = ((Long)hm.get("individualid")).intValue();
      IntMember individualid = new IntMember("individualid", ID, 10, "", 'T', false, 10);
      StringMember individualname = new StringMember("individualname", (String)hm
          .get("individualname"), 10, "", 'T', true);
      StringMember email = new StringMember("email", (String)hm.get("email"), 10, "", 'T', true);
      StringMember accepted = new StringMember("accepted", (String)hm.get("accepted"), 10, "", 'T',
          false);
      EventAtendeesListElement ele = new EventAtendeesListElement(ID);

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