Package org.g4studio.common.web

Examples of org.g4studio.common.web.BaseActionForm


   * @param
   * @return
   */
  public ActionForward queryMenuItemsForManage(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    String menuid = request.getParameter("menuid");
    if (G4Utils.isNotEmpty(menuid)) {
      super.setSessionAttribute(request, "menuid", menuid);
    }
    dto.put("menuid", super.getSessionAttribute(request, "menuid"));
View Full Code Here


   * @param
   * @return
   */
  public ActionForward saveMenuItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    if (!isDemoMode(response)) {
      resourceService.saveMenuItem(inDto);
      setOkTipMsg("菜单数据新增成功", response);
    }
    return mapping.findForward(null);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward updateMenuItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    if (!isDemoMode(response)) {
      resourceService.updateMenuItem(inDto);
      setOkTipMsg("菜单数据修改成功", response);
    }
    return mapping.findForward(null);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryCodeItems(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    List codeList = g4Reader.queryForPage("Resource.getCodeListForPage", inDto);
    Integer totalCount = (Integer) g4Reader.queryForObject("Resource.getCodeListForPageCount", inDto);
    String jsonStrList = JsonHelper.encodeList2PageJson(codeList, totalCount, null);
    write(jsonStrList, response);
    return mapping.findForward(null);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward saveCodeItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    Dto outDto = resourceService.saveCodeItem(inDto);
    String jsonString = JsonHelper.encodeObject2Json(outDto);
    write(jsonString, response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @param
   * @return
   */
  public ActionForward updateCodeItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    if (!isDemoMode(response)) {
      resourceService.updateCodeItem(inDto);
      setOkTipMsg("字典数据修改成功", response);
    }
    return mapping.findForward(null);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryUsersForManage(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm)form;
    Dto dto = aForm.getParamAsDto(request);
    String deptid = request.getParameter("deptid");
    if (G4Utils.isNotEmpty(deptid)) {
      setSessionAttribute(request, "deptid", deptid);
    }
    if (!G4Utils.isEmpty(request.getParameter("firstload"))) {
View Full Code Here

   * @param
   * @return
   */
  public ActionForward saveUserItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    Dto outDto = userService.saveUserItem(inDto);
    String jsonString = JsonHelper.encodeObject2Json(outDto);
    write(jsonString, response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @param
   * @return
   */
  public ActionForward updateUserItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    if (!isDemoMode(response)) {
      userService.updateUserItem(inDto);
      setOkTipMsg("用户数据修改成功", response);
    }
    return mapping.findForward(null);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryMonitorData(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    dto.put("ksrq", G4Utils.Date2String(dto.getAsDate("ksrq"), "yyyyMMdd000000"));
    dto.put("jsrq", G4Utils.Date2String(dto.getAsDate("jsrq"), "yyyyMMdd235959"));
    List eventList = g4Reader.queryForPage("Monitor.queryJdbcMonitorRecordsByDto", dto);
    for (int i = 0; i < eventList.size(); i++) {
      Dto dto2 = (BaseDto)eventList.get(i);
View Full Code Here

TOP

Related Classes of org.g4studio.common.web.BaseActionForm

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.