Package com.centraview.common

Examples of com.centraview.common.IntMember


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

          //Long lineID = (Long)hm.get("lineid");
          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)
          */
 
View Full Code Here


   private void addExpenseItem(ItemElement ele ,int expenseID)
   {
    CVDal cvdal = 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();

      cvdal.setSql("account.expense.addexpenseitem");
      cvdal.setInt(1,expenseID);
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");
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("account.expense.updateexpenseitem");
      dl.setInt(1, itemID);
View Full Code Here

  private void updateOrderItem(ItemElement ele, int orderID)
  {
    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");

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

   */
  private void markDeleatedOrderItem(ItemElement ele, int orderID)
  {
    CVDal dl = new CVDal(this.dataSource);
    try {
      IntMember lineid = (IntMember) ele.get("LineId");
      String status = ele.getLineStatus();

      dl.setSql("order.markdeletedorderitem");
      dl.setString(1, status);
      dl.setInt(2, ((Integer) lineid.getMemberValue()).intValue());
      dl.setInt(3, orderID);

      dl.executeUpdate();
      dl.clearParameters();
    } catch (Exception e) {
View Full Code Here

   private void markDeletedExpenseItem(ItemElement ele ,int expenseID)
   {
    CVDal dl = new CVDal(this.dataSource);
     try
     {
       IntMember lineid = ( IntMember )ele.get("LineId");
       String status    = ele.getLineStatus();
      IntMember itemid = ( IntMember )ele.get("ItemId");

       dl.setSql("account.expense.markdeletedexpenseitem");
       dl.setString(1,status);
       dl.setInt(2,expenseID);
      dl.setInt(3,((Integer)itemid.getMemberValue()).intValue() );
       dl.setInt(4,((Integer)lineid.getMemberValue()).intValue());
       dl.executeUpdate();
       dl.clearParameters();
     }
     catch(Exception e)
View Full Code Here

          String description = (String) hm.get("description");
          float taxTotal = ((Number) hm.get("taxAmount")).floatValue();
          String status = (String) hm.get("status");
          float priceExtended = quantity * price;

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

          String sku = (String) hm.get("SKU");
          String description = (String) hm.get("Description");
          String status = (String) hm.get("LineStatus");
          float priceExtended = quantity * price;

          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);

View Full Code Here

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

          int customFieldID = ((Number) hm.get("customfieldid")).intValue();

          IntMember addId = new IntMember("CustomFieldID", customFieldID, 10, "/centraview/ViewHandler.do?customFieldID=" + customFieldID, 'T',
              false, 10);
          StringMember field = new StringMember("Field", (String) hm.get("name"), 10, "requestURL", 'T', true);
          StringMember value = new StringMember("Value", (String) hm.get("value"), 10, "requestURL", 'T', false);

          CustomFieldListElement listElement = new CustomFieldListElement(customFieldID);
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.