Package com.lgx8.management.entities

Examples of com.lgx8.management.entities.Organization


  public PageList findSupplierPage(int pageno, int pagesize) {
    String hql = "";
    hql = "from Supplier s where s.isdelete=0 order by s.id desc";
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here


  }

  public PageList findBrandPage(int pageno, int pagesize) {
    String hql = "from Brand b where b.isdelete=0 order by b.id desc";
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
      hql += ") "+" order by p.createdate desc";
     
    }
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
    }
    hql += "order by s.id desc";
   
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
    }
    hql += "order by b.id desc";
   
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      hql += conditions ;
    }
   
    hql += " order by orderTime desc";
   
    PageList page = this.findByPage4Report(hql, new Object[]{}, pageNum, pageSize);
   
    return page;
  }
View Full Code Here

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
        base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

    super.init(config);
    configuration = new Configuration();
        configuration.setServletContextForTemplateLoading(getServletContext(), "ftl/gateway");
        configuration.setDefaultEncoding("UTF-8");
       
        GatewayConfig gatewayConfig = (GatewayConfig) getServletContext().getAttribute("gatewayConfig");
        base.put("gatewayConfig", gatewayConfig);
   
    List<AreaCategory> areaCategorys = (List<AreaCategory>) getServletContext().getAttribute("areaCategorys");
    base.put("areaCategorys", areaCategorys);
   
View Full Code Here

    return getHibernateTemplate().find(hql);
  }
 
  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
    ICategoryDao categoryDao = (ICategoryDao) ac.getBean("categoryDao");
    List<Category> list = categoryDao.findAllCategoryList(new Long(5));
    for(int i=0;i<list.size();i++) {
      System.out.println(list.get(i).getName());
    }
  }
View Full Code Here

      PrintWriter pw = response.getWriter();
     
      pw.write("1");
    }else if((!"".equals(categoryType)&&categoryType != null) && categoryId != null)
    {
      IGatewayCategoryDetailDao gatewayCategoryDetailDao = (IGatewayCategoryDetailDao) ac.getBean("gatewayCategoryDetailDao");
      GatewayCategoryDetail detail = gatewayCategoryDetailDao.findGatewayCategoryDetailById(Integer.parseInt(id));
      if(!"null".equals(entityId)&&!"".equals(entityId)&&entityId!=null)detail.setEntityId(entityId);
      if(!"null".equals(entityUrl)&&!"".equals(entityUrl)&&entityUrl!=null)detail.setEntityUrl(entityUrl);
      if(!"null".equals(otherUrl)&&!"".equals(otherUrl)&&otherUrl!=null)detail.setOtherUrl(otherUrl);
      if(!"null".equals(areaNode)&&!"".equals(areaNode)&&areaNode!=null)detail.setAreaNode(areaNode);
      if(!"null".equals(url)&&!"".equals(url)&&url!=null)detail.setUrl(url);
      if(!"null".equals(entityName)&&!"".equals(entityName)&&entityName!=null)detail.setEntityName(entityName);
     
      gatewayCategoryDetailDao.updateGatewayCategoryDetail(detail);
    }
   
  }
View Full Code Here

TOP

Related Classes of com.lgx8.management.entities.Organization

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.