Package org.jallinone.system.companies.java

Examples of org.jallinone.system.companies.java.CompanyVO


      // fill in companies combo...
      Domain domain = new Domain("COMPANIES");
      Response res = ClientUtils.getData("loadCompanies",null);
      if (!res.isError()) {
        java.util.List rows = ((VOListResponse)res).getRows();
        CompanyVO vo = null;
        for(int i=0;i<rows.size();i++) {
          vo = (CompanyVO)rows.get(i);
          domain.addDomainPair(vo.getCompanyCodeSYS01(),vo.getName_1REG04());
        }
      }
      colDefCompany.setDomain(domain);

View Full Code Here


   */
  private void init() {
    Response res = ClientUtils.getData("loadCompanies",new GridParams());
    final Domain d = new Domain("COMPANIES");
    if (!res.isError()) {
      CompanyVO vo = null;
      java.util.List list = ((VOListResponse)res).getRows();
      for(int i=0;i<list.size();i++) {
        vo = (CompanyVO)list.get(i);
        d.addDomainPair(vo.getCompanyCodeSYS01(),vo.getName_1REG04());
      }
    }
    controlCompanies.setDomain(d);
    controlCompanies.getComboBox().addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
View Full Code Here

          "select SYS01_COMPANIES.COMPANY_CODE,REG04_SUBJECTS.NAME_1,REG04_SUBJECTS.PROGRESSIVE from SYS01_COMPANIES,REG04_SUBJECTS where "+
          "SYS01_COMPANIES.COMPANY_CODE=REG04_SUBJECTS.COMPANY_CODE_SYS01 and "+
          "SYS01_COMPANIES.ENABLED='Y' and "+
          "REG04_SUBJECTS.SUBJECT_TYPE='M'"
      );
      CompanyVO vo = null;
      ArrayList list = new ArrayList();
      while(rset.next()) {
        vo = new CompanyVO();
        vo.setCompanyCodeSYS01(rset.getString(1));
        vo.setName_1REG04(rset.getString(2));
        vo.setProgressiveREG04(rset.getBigDecimal(3));
        list.add(vo);
      }

      rset.close();
      return new VOListResponse(list,false,list.size());
View Full Code Here

   */
  private void init() {
    Response res = ClientUtils.getData("loadCompanies",new GridParams());
    final Domain d = new Domain("COMPANIES");
    if (!res.isError()) {
      CompanyVO vo = null;
      java.util.List list = ((VOListResponse)res).getRows();
      for(int i=0;i<list.size();i++) {
        vo = (CompanyVO)list.get(i);
        d.addDomainPair(vo.getCompanyCodeSYS01(),vo.getName_1REG04());
      }
    }
    controlCompanies.setDomain(d);
    controlCompanies.getComboBox().addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
View Full Code Here

            "insert into SYS19_USER_PARAMS(COMPANY_CODE_SYS01,USERNAME_SYS03,PARAM_CODE,VALUE,CREATE_USER,CREATE_DATE) "+
            "select COMPANY_CODE_SYS01,?,PARAM_CODE,VALUE,?,? from SYS21_COMPANY_PARAMS where COMPANY_CODE_SYS01=?"
        );

        java.util.List list = ((VOListResponse)res).getRows();
        CompanyVO companyVO = null;
        for(int i=0;i<list.size();i++) {
          companyVO = (CompanyVO)list.get(i);
          pstmt.setString(1,vo.getUsernameSYS03());
          pstmt.setString(2,username);
          pstmt.setTimestamp(3,new java.sql.Timestamp(System.currentTimeMillis()));
          pstmt.setString(4,companyVO.getCompanyCodeSYS01());
          pstmt.execute();


//          pstmt.setString(1,companyVO.getCompanyCodeSYS01());
//          pstmt.setString(2,vo.getUsernameSYS03());
View Full Code Here

TOP

Related Classes of org.jallinone.system.companies.java.CompanyVO

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.