Package org.g4studio.common.web

Examples of org.g4studio.common.web.BaseActionForm


   * @param
   * @return
   */
  public ActionForward queryCatalogs4Print(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm)form;
    Dto inDto = aForm.getParamAsDto(request);
    super.setSessionAttribute(request, "QUERYCATALOGS4PRINT_QUERYDTO", inDto);
    List catalogList = g4Reader.queryForPage("Demo.queryCatalogsForPrint", inDto);
    Integer pageCount = (Integer) g4Reader.queryForObject("Demo.queryCatalogsForPrintForPageCount", inDto);
    String jsonString = encodeList2PageJson(catalogList, pageCount, G4Constants.FORMAT_DateTime);
    write(jsonString, response);
View Full Code Here


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

   * @return
   * @throws Exception
   */
  public ActionForward querySfxm(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm) form;
    Dto inDto = cForm.getParamAsDto(request);
    Dto outDto = (BaseDto)g4Reader.queryForObject("Demo.queryCatalogs2", inDto);
    if (G4Utils.isEmpty(outDto)) {
      outDto = new BaseDto();
      outDto.put("msg", "没有查询到数据");
    }else {
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward updateSfxm(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm) form;
    Dto inDto = cForm.getParamAsDto(request);
    inDto.put("ggsj", inDto.getAsTimestamp("ggsj"));
    demoService.updateSfxmDomain(inDto);
    setOkTipMsg("数据修改成功", response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward saveSfxmDomain(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    inDto.put("ggsj", inDto.getAsTimestamp("ggsj"));
    inDto.put("yybm", "03010001");
    demoService.saveSfxmDomain(inDto);
    setOkTipMsg("收费项目数据保存成功", response);
    return mapping.findForward(null);
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward querySfxmDatas(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto dto = aForm.getParamAsDto(request);
    List list = g4Reader.queryForPage("Demo.queryCatalogsForGridDemo", dto);
    setSessionAttribute(request, "printList", list);
    Integer countInteger = (Integer) g4Reader.queryForObject("Demo.countCatalogsForGridDemo", dto);
    String jsonString = JsonHelper.encodeList2PageJson(list, countInteger, G4Constants.FORMAT_Date);
    write(jsonString, response);
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward deleteSfxm(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm aForm = (BaseActionForm) form;
    Dto inDto = aForm.getParamAsDto(request);
    demoService.deleteSfxm(inDto);
    setOkTipMsg("收费项目删除成功", response);
    return mapping.findForward(null);
  }
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward callPrc(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm) form;
    Dto inDto = cForm.getParamAsDto(request);
    inDto.put("myname", getSessionContainer(request).getUserInfo().getUsername());
      Dto outDto = demoService.callPrc(inDto);
      String result = outDto.getAsString("result");
      result = result + " " + inDto.getAsString("number1") + "+" + inDto.getAsString("number2") + "=" + outDto.getAsString("sum");
      outDto.put("result", result);
View Full Code Here

   * @return
   * @throws Exception
   */
  public ActionForward batchSql(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    BaseActionForm cForm = (BaseActionForm) form;
    Dto inDto = cForm.getParamAsDto(request);
    inDto.put("count", "3");
    inDto.put("ggsj", inDto.getAsTimestamp("ggsj"));
    inDto.put("yybm", "03010001");
    demoService.batchSaveSfxmDomains(inDto);
    setOkTipMsg("保存成功(以batch方式一次性向数据库服务器批量提交了3条SQL语句)", 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);
    String jsonString = encodeList2PageJson(list, countInteger, 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.