Package com.skymobi.qc.admin.dal.domain

Examples of com.skymobi.qc.admin.dal.domain.Project


 
 
 
  @RequestMapping(value = "/{tag}/items/new")
  public String itemNew(@PathVariable String tag,Model model) {
    Project project = projectBO.getProjectByTag(tag);
    model.addAttribute("project", project);
    model.addAttribute("view", "new");
    model.addAttribute("item", new HashMap<String,Object>());
   
    //所有的字段名
    model.addAttribute("customFieldList", fieldsBO.customFieldList(project.getId()));
    model.addAttribute("layout", fieldsBO.getLayout(project.getId()));
    Main main = getMain(model);
    projectBO.setMainMenu(main, tag);
    main.setAction("/project/"+tag+"/items/new");
   
    return "/project/items_new";
View Full Code Here


  }
 
  @RequestMapping(value = "/{id}/items/add")
  public void itemAdd(@PathVariable int id,Model model,HttpServletRequest request) {
    try {
      Project project = projectBO.getProjectByAttr("id",id);
      model.addAttribute("project", project);
     
      ParaMap<String, Object> pm = getParaMap(request);
     
      pm.put("table_name", project.getTable_name());
     
      projectBO.itemAdd(project, pm);
     
      success(model);
    } catch (Exception e) {
View Full Code Here

  }
 
 
  @RequestMapping(value = "/{tag}/setting/layout/newitem")
  public String layoutNewItem(@PathVariable String tag,Model model) {
    Project project = projectBO.getProjectByTag(tag);
    model.addAttribute("project", project);
    model.addAttribute("view", "layout");
   
    //所有的字段名
    model.addAttribute("customFieldList", fieldsBO.customFieldList(project.getId()));
   
    model.addAttribute("layout", fieldsBO.getLayout(project.getId()));
   
    Main main = getMain(model);
    projectBO.setMainMenu(main, tag);
    main.setAction("/project/"+tag+"/settings");
   
View Full Code Here

TOP

Related Classes of com.skymobi.qc.admin.dal.domain.Project

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.