/** * <br> * [機 能] 添付ファイルダウンロードの処理 <br> * [解 説] <br> * [備 考] * * @param map アクションマッピング * @param form アクションフォーム * @param req リクエスト * @param res レスポンス * @param con コネクション * @throws SQLException SQL実行例外 * @throws Exception 実行時例外 * @return ActionForward */ private ActionForward __doGetImageFile( ActionMapping map, Rsv010Form form, HttpServletRequest req, HttpServletResponse res, Connection con) throws SQLException, Exception { // 施設SID int rsdSid = form.getRsvSelectedSisetuSid(); // バイナリSID Long binSid = form.getRsv010BinSid(); Rsv010Biz biz = new Rsv010Biz(getRequestModel(req), con); RsvCommonBiz rsvBiz = new RsvCommonBiz(); // 閲覧権限ある且つ施設SIDとバイナリSIDの組み合わせが一致している if (biz.isReadSisetsu(rsdSid) && rsvBiz.isCheckRsvImage(rsdSid, binSid, con)) { CommonBiz cmnBiz = new CommonBiz(); CmnBinfModel cbMdl = null; cbMdl = cmnBiz.getBinInfo(con, binSid, GroupSession.getResourceManager().getDomain(req)); if (cbMdl != null) { JDBCUtil.closeConnectionAndNull(con); // ファイルをダウンロードする TempFileUtil.downloadInline(req, res, cbMdl, getAppRootPath(), Encoding.UTF_8); } } return null; }
/** * <br> * [機 能] 月間画面へ移動 <br> * [解 説] <br> * [備 考] * * @param map マップ * @param form フォーム * @param req リクエスト * @param res レスポンス * @param con コネクション * @return ActionForward フォワード */ private ActionForward __doMoveGekkan( ActionMapping map, Rsv010Form form, HttpServletRequest req, HttpServletResponse res, Connection con) { Rsv030Form nextForm = new Rsv030Form(); nextForm.setRsvDspFrom(form.getRsvDspFrom()); nextForm.setRsvSelectedGrpSid(form.getRsvSelectedGrpSid()); nextForm.setRsvSelectedSisetuSid(form.getRsvSelectedSisetuSid()); req.setAttribute("rsv030Form", nextForm); return map.findForward("gekkan"); }
/** * <br> * [機 能] 個人設定画面へ移動 <br> * [解 説] <br> * [備 考] * * @param map マップ * @param form フォーム * @param req リクエスト * @param res レスポンス * @param con コネクション * @return ActionForward フォワード */ private ActionForward __doMoveKojin( ActionMapping map, Rsv010Form form, HttpServletRequest req, HttpServletResponse res, Connection con) { Rsv140Form nextForm = new Rsv140Form(); nextForm.setRsvDspFrom(form.getRsvDspFrom()); nextForm.setRsvSelectedGrpSid(form.getRsvSelectedGrpSid()); nextForm.setRsvSelectedSisetuSid(form.getRsvSelectedSisetuSid()); nextForm.setRsvBackPgId(GSConstReserve.DSP_ID_RSV010); req.setAttribute("rsv140Form", nextForm); return map.findForward("kozin_settei"); }
/** * <br> * [機 能] 施設予約画面へ移動 <br> * [解 説] <br> * [備 考] * * @param map マップ * @param form フォーム * @param req リクエスト * @param res レスポンス * @param con コネクション * @param mode 処理区分 * @return ActionForward フォワード */ private ActionForward __doMoveYoyaku( ActionMapping map, Rsv010Form form, HttpServletRequest req, HttpServletResponse res, Connection con, String mode) { Rsv110Form nextForm = new Rsv110Form(); nextForm.setRsvBackPgId(GSConstReserve.DSP_ID_RSV010); nextForm.setRsvDspFrom(form.getRsvDspFrom()); nextForm.setRsvSelectedGrpSid(form.getRsvSelectedGrpSid()); nextForm.setRsv110ProcMode(mode); nextForm.setRsv110SinkiDefaultDate(form.getRsvSelectedDate()); nextForm.setRsv110RsySid(form.getRsvSelectedYoyakuSid()); nextForm.setRsv110RsdSid(form.getRsvSelectedSisetuSid()); req.setAttribute("rsv110Form", nextForm); return map.findForward("yoyaku"); }