Package org.g4studio.common.web

Examples of org.g4studio.common.web.BaseActionForm


   * @param
   * @return
   */
  public ActionForward queryIconItems(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    List iconList = g4Reader.queryForPage("Resource.queryIconsForManage", inDto);
    String subPath = "./resource/image/ext/";
    for (int i = 0; i < iconList.size(); i++) {
      Dto dto = (BaseDto) iconList.get(i);
      dto.put("accesspath", subPath + dto.getAsString("filename"));
View Full Code Here


   * @param
   * @return
   */
  public ActionForward queryMonitorDatas(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.queryExceptionRecordsByDto", dto);
    for (int i = 0; i < eventList.size(); i++) {
      Dto dto2 = (BaseDto) eventList.get(i);
View Full Code Here

   * @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.deleteMonitorData(dto);
    if (dto.getAsString("type").equalsIgnoreCase("reset"))
      setOkTipMsg("执行成功,所有监控记录已被清除!", response);
    else
      setOkTipMsg("数据删除成功!", response);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryRolesForManage(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)) {
      super.setSessionAttribute(request, "deptid", deptid);
    }
    if(!G4Utils.isEmpty(request.getParameter("firstload"))){
View Full Code Here

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

   * @param
   * @return
   */
  public ActionForward updateRoleItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    roleService.updateRoleItem(inDto);
    setOkTipMsg("角色修改成功", response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward queryXsyjDatas(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    List list = g4Reader.queryForPage("Demo.getFcfDataList", dto);
    String jsonString = JsonHelper.encodeList2PageJson(list, new Integer(12), G4Constants.FORMAT_Date);
    super.write(jsonString, response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @param
   * @return
   */
  public ActionForward queryDeptsForManage(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)) {
      super.setSessionAttribute(request, "deptid", deptid);
    }
    if(!G4Utils.isEmpty(request.getParameter("firstload"))){
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward queryReportXmlDatas(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    String product = "(产品一)";
    if (dto.getAsString("product").equals("2")) {
      product = "(产品二)";
    }
    List list = g4Reader.queryForList("Demo.getFcfDataList", dto);
View Full Code Here

   * @param
   * @return
   */
  public ActionForward saveDeptItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    if (!isDemoMode(response)) {
      organizationService.saveDeptItem(inDto);
      setOkTipMsg("部门数据新增成功", 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.