Package org.jeecgframework.web.demo.entity.test

Examples of org.jeecgframework.web.demo.entity.test.JeecgMatterBom


    }
    cq.add();
    List<TreeGrid> list = jeecgMatterBomService.getListByCriteriaQuery(cq, false);
    if(list.size() == 0 && entity.getCode() != null) {
      cq = new CriteriaQuery(JeecgMatterBom.class);
      JeecgMatterBom parent = new JeecgMatterBom();
      entity.setParent(parent);
      HqlGenerateUtil.installHql(cq, entity);
      list = jeecgMatterBomService.getListByCriteriaQuery(cq, false);
    }
    List<TreeGrid> treeGrids = new ArrayList<TreeGrid>();
View Full Code Here


    if (StringUtil.isEmpty(parentId)) {
      entity.setParent(null);
    }
    if (StringUtil.isNotEmpty(entity.getId())) {
      message = "更新成功";
      JeecgMatterBom t = jeecgMatterBomService.get(JeecgMatterBom.class, entity.getId());
      try {
        MyBeanUtils.copyBeanNotNull2Bean(entity, t);
        jeecgMatterBomService.saveOrUpdate(t);
        systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
      } catch (Exception e) {
View Full Code Here

   * 修复物料Bom
   *@Author fancq
   *@date   2013-11-14
   */
  private void repairMatterBom() {
    JeecgMatterBom entity = new JeecgMatterBom();
    entity.setCode("001");
    entity.setName("电脑");
    entity.setUnit("台");
    entity.setWeight("100");
    entity.setPrice(new BigDecimal(5000));
    entity.setStock(10);
    entity.setAddress("广东深圳");
    entity.setProductionDate(new Date());
    entity.setQuantity(5);
    commonDao.save(entity);
   
    JeecgMatterBom entity2 = new JeecgMatterBom();
    entity2.setCode("001001");
    entity2.setName("主板");
    entity2.setUnit("个");
    entity2.setWeight("60");
    entity2.setPrice(new BigDecimal(800));
    entity2.setStock(18);
    entity2.setAddress("上海");
    entity2.setProductionDate(new Date());
    entity2.setQuantity(6);
    entity2.setParent(entity);
    commonDao.save(entity2);
  }
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.demo.entity.test.JeecgMatterBom

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.