Package com.centraview.common

Examples of com.centraview.common.DDNameValue


          Iterator it = colViewList.iterator();
          while (it.hasNext()) {
            HashMap hm = (HashMap)it.next();
            int viewID = ((Number)hm.get("viewid")).intValue();
            String viewName = (String)hm.get("viewname");
            defaultViewList.add(new DDNameValue(viewID,viewName));
          }
        }
        HashMap listTypeInfo = new HashMap();
        listTypeInfo.put("DefaultViewID", defaultViewId + "");
        listTypeInfo.put("ViewList", defaultViewList);
View Full Code Here


        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("ItemType");
          int id     = ((Long)hm.get("ID")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          vec.add(dd);
        }
      }
    }
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("GLAccount");
          int id     = ((Long)hm.get("ID")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          arl.add(dd);
        }
      }
    }catch(Exception e){
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name = (String) hm.get("title");
          int id    = ((Number) hm.get("locationid")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          vec.add(dd);
        }
      }
    }
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("TaxClass");
          int id     = Integer.parseInt(hm.get("ID").toString());
          DDNameValue dd = new DDNameValue(id,name);
          vec.add(dd);
        }
      }
    }
    catch(Exception e)
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("AccountingStatus");
          int id     = ((Long)hm.get("ID")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          vec.add(dd);
        }
      }
    }
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("AccountingTerms");
          int id     = ((Long)hm.get("ID")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          vec.add(dd);
        }
      }
    }
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("PaymentMethod");
          int id     = ((Long)hm.get("ID")).intValue();
          DDNameValue dd = new DDNameValue(id,name);

          arl.add(dd);
        }
      }
    }
View Full Code Here

        while (it.hasNext())
        {
          HashMap hm  = (HashMap)it.next();
          String name  = (String)hm.get("taxjurisdictionname");
          int id     = Integer.parseInt(hm.get("taxjurisdictionid").toString());
          DDNameValue dd = new DDNameValue(id,name);
          vec.add(dd);
        }// end of while (it.hasNext())
      }// end of if (col != null)
    }// end of try block
    catch(Exception e)
View Full Code Here

        int taxJurisdictionID  = dl.getAutoGeneratedKey();
        if(taxJurisdictionID > 0){
          Vector taxClasses = this.getTaxClasses();
          if(taxClasses != null && taxClasses.size() != 0){
            for(int i=0; i<taxClasses.size();i++){
              DDNameValue taxClassNameValue = (DDNameValue)taxClasses.get(i);
              if(taxClassNameValue != null){
                int taxClassID = taxClassNameValue.getId();
                dl.setSqlQuery("insert into taxmatrix values(?,?,?)");
                dl.setInt(1,taxClassID);
                dl.setInt(2,taxJurisdictionID);
                dl.setInt(3,0);
                dl.executeUpdate();
              }// end of if(taxClassNameValue != null)
            }// end of for(int i=0; i<taxClasses.size();i++)
          }// end of if(taxClasses != null && taxClasses.size() != 0)
        }// end of if(taxJurisdictionID > 0)

      }// end of if (typeClassOrJurisdiction != null && typeClassOrJurisdiction.equals("Jurisdiction"))
      if (typeClassOrJurisdiction != null && typeClassOrJurisdiction.equals("taxClass")){
        dl.setSqlQueryToNull();
        dl.setSqlQueryToNull();
        dl.setSqlQuery("insert into taxclass (title) values(?)");
        dl.setString(1,taxClassOrJurisdiction);
        dl.executeUpdate();
        int taxClassID  = dl.getAutoGeneratedKey();
        if(taxClassID > 0){
          Vector taxJurisdiction = this.getTaxJurisdiction();
          if(taxJurisdiction != null && taxJurisdiction.size() != 0){
            for(int i=0; i<taxJurisdiction.size();i++){
              DDNameValue taxJurisdictionNameValue = (DDNameValue)taxJurisdiction.get(i);
              if(taxJurisdictionNameValue != null){
                int taxJurisdictionID = taxJurisdictionNameValue.getId();
                dl.setSqlQuery("insert into taxmatrix values(?,?,?)");
                dl.setInt(1,taxClassID);
                dl.setInt(2,taxJurisdictionID);
                dl.setInt(3,0);
                dl.executeUpdate();
View Full Code Here

TOP

Related Classes of com.centraview.common.DDNameValue

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.