Examples of BaseActionForm


Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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

Examples of org.g4studio.common.web.BaseActionForm

   * @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
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.