Package org.g4studio.common.web

Examples of org.g4studio.common.web.BaseActionForm


   * @param
   * @return
   */
  public ActionForward deleteMonitorDatas(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    monitorService.deleteJDBCMonitorData(dto);
    if (dto.getAsString("type").equalsIgnoreCase("reset"))
      setOkTipMsg("执行成功,所有监控记录已被清除!", response);
    else
      setOkTipMsg("数据删除成功!", response);
View Full Code Here


   * @param
   * @return
   */
  public ActionForward queryParts(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm)form;
    Dto dto = cForm.getParamAsDto(request);
    List list = g4Reader.queryForPage("Part.queryParts", dto);
    Integer countInteger = (Integer) g4Reader.queryForObject("Part.queryPartsForPageCount", dto);
    for (int i = 0; i < list.size(); i++) {
      Dto partDto = (BaseDto)list.get(i);
      dto.put("partid", partDto.getAsString("partid"));
View Full Code Here

   * @param
   * @return
   */
  public ActionForward savePartUserGrantDatas(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);
    if (!isDemoMode(response)) {
      partService.savePartUserGrantDatas(inDto);
      setOkTipMsg("授权数据保存成功", response);
View Full Code Here

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

   * @param
   * @return
   */
  public ActionForward queryDeptinfoByDeptid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = new BaseDto();
    String deptid = super.getSessionContainer(request).getUserInfo().getDeptid();
    inDto.put("deptid", deptid);
    Dto outDto = organizationService.queryDeptinfoByDeptid(inDto);
    String jsonString = JsonHelper.encodeObject2Json(outDto);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryParamsForManage(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    List paramList = g4Reader.queryForPage("Param.queryParamsForManage", dto);
    Integer pageCount = (Integer)g4Reader.queryForObject("Param.queryParamsForManageForPageCount", dto);
    String jsonString = JsonHelper.encodeList2PageJson(paramList, pageCount, null);
    write(jsonString, response);
    return mapping.findForward(null);
View Full Code Here

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

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

   * @param
   * @return
   */
  public ActionForward synMemory(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
      List paramList = g4Reader.queryForList("Resource.getParamList");
      getServlet().getServletContext().removeAttribute("EAPARAMLIST");
      getServlet().getServletContext().setAttribute("EAPARAMLIST", paramList);
    Dto outDto = new BaseDto();
    outDto.put("success", new Boolean(true));
View Full Code Here

   * @param
   * @return
   */
  public ActionForward getSessionList(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm)form;
    Dto dto = cForm.getParamAsDto(request);
    List sessionList = g4Reader.queryForPage("Monitor.queryHttpSessions", dto);
    Integer pageCount = (Integer) g4Reader.queryForObject("Monitor.queryHttpSessionsForPageCount", dto);
    String jsonString = encodeList2PageJson(sessionList, pageCount, null);
    write(jsonString, response);
    return mapping.findForward(null);
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.