Package com.centraview.common

Examples of com.centraview.common.StringMember


              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();
                //              DoubleMember dmprice  = (DoubleMember) ile.get("Price");
                FloatMember dmprice = (FloatMember)ile.get("Price");
                float price = ((Float)dmprice.getMemberValue()).floatValue();
                int id = ile.getElementID();

                IntMember LineId = new IntMember("LineId", 11, 'D', "", 'T', false, 20);
                IntMember ItemId = new IntMember("ItemId", id, 'D', "", 'T', false, 20);
                StringMember SKU = new StringMember("SKU", sku, 'D', "", 'T', false);
                StringMember Description = new StringMember("Description", name, 'D', "", 'T', false);
                FloatMember Quantity = new FloatMember("Quantity", new Float(1.0f), 'D', "", 'T', false, 20);
                FloatMember PriceEach = new FloatMember("PriceEach", new Float(price), 'D', "", 'T', false, 20);
                FloatMember PriceExtended = new FloatMember("PriceExtended", new Float(0.0f), 'D', "", 'T', false, 20);

                FloatMember Amount = new FloatMember("Amount", new Float(0.0f), 'D', "", 'T', false, 20);
                StringMember Reference = new StringMember("Reference", new String(), 'D', "", 'T', false);

                IntMember ReferenceType = new IntMember("ReferenceType", 100, 'D', "", 'T', false, 20);
                IntMember ReferenceId = new IntMember("ReferenseId", 100, 'D', "", 'T', false, 20);

                HrExpenseLineElement ie = new HrExpenseLineElement(11);
View Full Code Here



      if (!lineid[i].equals(""))
      LineId = new IntMember("LineId",Integer.parseInt(lineid[i]),10,"",'T',false,20);
      IntMember     ItemId = new IntMember("ItemId",Integer.parseInt(itemid[i]),10,"",'T',false,20);
      StringMember   SKU = new StringMember("SKU",sku[i],10,"",'T',false);
      StringMember   Description = new StringMember("Description",description[i],10,"",'T',false);
      /*FloatMember   Quantity = new FloatMember("Quantity",new Float(quantity[i]),10,"0",'T',false,20);
      FloatMember   PriceEach = new FloatMember("PriceEach",new Float(priceeach[i]),10,"",'T',false,20);
      FloatMember   PriceExtended = new FloatMember("PriceExtended",new Float(priceExtended[i]),10,"",'T',false,20);*/
      FloatMember   UnitTax = new FloatMember("UnitTax",new Float(unittax[i]),10,"",'T',false,20);
      FloatMember   TaxRate = new FloatMember("UnitTaxrate",new Float(taxrate[i]),10,"",'T',false,20);
      FloatMember   OrderQuantity = new FloatMember("OrderQuantity",new Float(orderquantity[i]),10,"",'T',false,20);
      FloatMember   PendingQuantity = new FloatMember("PendingQuantity",new Float(pendingquantity[i]),10,"",'T',false,20);
      IntMember     Value = new IntMember("Value",Integer.parseInt(value[i]),10,"",'T',false,20);
      StringMember   Type = new StringMember("Type",type[i],10,"",'T',false);
      FloatMember   DiscountedPrice = new FloatMember("DiscountedPrice",new Float(strDiscoountprice),10,"",'T',false,20);
      /*DoubleMember   ListPrice = new FloatMember("ListPrice",new Float(listprice[i]),10,"",'T',false,20);
      FloatMember   Cost = new FloatMember("Cost",new Float(cost[i]),10,"",'T',false,20);
      */

 
View Full Code Here

      while( it.hasNext() )
       {


      String str = ( String )it.next();
      StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );
      IntMember im = ( IntMember )ele.get("ID" );

      if (im != null)
      {
          expFormID = ((Integer)im.getMemberValue()).intValue();
      }
      else
      {
      }


      im.setRequestURL("goTo('NewHRExpense.do?rowId="+ele.getElementID()+"&expenseFormID="+expFormID+"')");

      sm = ( StringMember )ele.get("Employee" );
      im = (IntMember) ele.get("EmployeeID");
      sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+im.getMemberValue()+"&listId="+DL.getListID()+"')");

      sm = ( StringMember )ele.get("CreatedBy" );
      im = (IntMember) ele.get("Creator");
      sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+im.getMemberValue()+"&listId="+DL.getListID()+"')");
       }

  }
View Full Code Here

        while (iter.hasNext()) {
          i++;
          HashMap row = (HashMap)iter.next();
          int ruleID = ((Number)row.get("ruleID")).intValue();
          IntMember ruleIDfield = new IntMember("RuleID", ruleID, 10, "", 'T', true, 10);
          StringMember name = new StringMember("RuleName", (String)row.get("name"), 10, "", 'T', true);
          StringMember description = new StringMember("Description", (String)row.get("description"), 10, "", 'T', false);
          StringMember enabled = new StringMember("EnabledStatus", (String)row.get("enabled"), 10, "", 'T', false);

          RuleListElement ele  = new RuleListElement(ruleID);

          ele.put("RuleID", ruleIDfield);
          ele.put("Name", name);
View Full Code Here

        i++;
        HashMap hm = (HashMap)it.next();
        int spID = ((Long)hm.get("ProfileID")).intValue();
        try {
          IntMember intProfleID = new IntMember("ProfileID", spID, 10, "", 'T', false, 10);
          StringMember strProfileName = null;
          IntMember intUserCount = null;
          if ((hm.get("ProfileName") != null))
            strProfileName = new StringMember("ProfileName", (String)hm.get("ProfileName"), 10, "", 'T', true);
          else
            strProfileName = new StringMember("ProfileName", null, 10, "", 'T', true);
          if ((hm.get("NoOfUsers") != null))
            if (hm.get("NoOfUsers") instanceof Long)
              intUserCount = new IntMember("NoOfUsers", ((Long)hm.get("NoOfUsers")).intValue(), 10, "", 'T', false, 10);
            else
              intUserCount = new IntMember("NoOfUsers", ((Integer)hm.get("NoOfUsers")).intValue(), 10, "", 'T', false, 10);
View Full Code Here

        IntMember ItemId = new IntMember("ItemId",Integer.parseInt(itemid[i]),'D',"",'T',false,20);
        quantity[i] = quantity[i].replaceAll(",","");
        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

               if (!lineStatus.equals("Deleted")) {

          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");
          FloatMember priceExe = (FloatMember)ele.get("PriceExtended");

          StringMember desc  = (StringMember)ele.get("Description");
          FloatMember taxAmount = (FloatMember)ele.get("TaxAmount");

          String quantity;
          String priceEachString;
          try
          {
            float tempFloat = (currencyFormat.parse(qty.getDisplayString())).floatValue();
            quantity = wholeNumberFormat.format(new Float(tempFloat));
          } //end of try block
          catch (Exception exception)
          {
            quantity = "0";
          } //end of catch block (Exception)

          try
          {
            float priceEachValue = ((Float) priceEach.getMemberValue()).floatValue();
            priceEachString = rawCurrencyFormat.format(new Float(priceEachValue));
          } //end of try block
          catch (Exception exception)
          {
            priceEachString = "0.00";
          } //end of catch block (Exception)


          Items = Items + "<tr>\n";
          Items = Items + "<td width=\"15%\">&nbsp;"+sku.getDisplayString()+"</td>\n";
          Items = Items + "<td width=\"40%\">&nbsp;"+desc.getDisplayString()+"</td>\n";
          Items = Items + "<td width=\"15%\">&nbsp;"+quantity+"</td>\n";
          Items = Items + "<td width=\"15%\" align=\"right\">&nbsp;$"+priceEachString+"</td>\n";
          Items = Items + "<td width=\"15%\" align=\"right\">&nbsp;$"+priceExe.getDisplayString()+"</td>\n";
          Items = Items + "</tr>\n";
               }
View Full Code Here

      while (it.hasNext())
      {
        String str = (String)it.next();
        ListElement ele = (ListElement)DL.get(str);
        StringMember sm = (StringMember)ele.get("title");
        sm.setRequestURL("goTo('ViewListHandler.do?rowId=" + ele.getElementID() + "&listId=" + DL.getListID() + "')");
      }

      DL.setPrimaryMember("title");
      if (request.getParameter("columnname") != null)
      {
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 = ( StringMember )ele.get("Email" );
      }
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("RuleName" );
        sm.setRequestURL("goTo('GetRuleDetailsHandler.do?rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");

      }catch(Exception e )
      {
        System.out.println( "RuleList:setLinksfunction"+ 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.