Examples of BaseDto


Examples of org.g4studio.core.metatype.impl.BaseDto

   * @param
   * @return
   */
  public ActionForward queryMenuItems(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    Dto dto = new BaseDto();
    String nodeid = request.getParameter("node");
    dto.put("parentid", nodeid);
    dto.put("menutype", SystemConstants.MENUTYPE_BUSINESS);
    List menuList = g4Reader.queryForList("Resource.queryMenuItemsByDto", dto);
    Dto menuDto = new BaseDto();
    for (int i = 0; i < menuList.size(); i++) {
      menuDto = (BaseDto) menuList.get(i);
      if (menuDto.getAsString("leaf").equals(SystemConstants.LEAF_Y))
        menuDto.put("leaf", new Boolean(true));
      else
        menuDto.put("leaf", new Boolean(false));
      if (menuDto.getAsString("id").length() == 4)
        menuDto.put("expanded", new Boolean(true));
    }
    write(JsonHelper.encodeObject2Json(menuList), response);
    return mapping.findForward(null);
  }
View Full Code Here

Examples of org.g4studio.core.metatype.impl.BaseDto

   */
  public ActionForward saveDirtyDatas(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    List list  = aForm.getGridDirtyData(request);
    Dto inDto = new BaseDto();
    inDto.setDefaultAList(list);
    Dto outDto = service.saveDirtyDatas(inDto);
    if (outDto.getSuccess()) {
      setOkTipMsg("数据保存成功", response);
    }else {
      setOkTipMsg("保存操作被取消,同一托管页面上元素Dom标志只能唯一,请检查", response);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.