From b8b9914d3e1f584b587a2ee0271fef8a349505ad Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 14 Jul 2023 13:44:31 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=98=81=EC=83=81=20=EC=9E=AC?= =?UTF-8?q?=EC=83=9D=20=EA=B8=B0=EB=8A=A5=20=ED=8C=A8=ED=82=A4=EC=A7=80?= =?UTF-8?q?=EB=AA=85,=20=ED=81=B4=EB=9E=98=EC=8A=A4=EB=AA=85=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD(crdn09=20->=20sprt03)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/Sprt03Controller.java} | 12 ++++-------- src/main/java/cokr/xit/fims/task/CmnController.java | 6 +++--- .../webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 2 +- .../crdn09010-main.jsp => sprt/sprt03010-main.jsp} | 4 ++++ 4 files changed, 12 insertions(+), 12 deletions(-) rename src/main/java/cokr/xit/fims/{crdn/web/Crdn09Controller.java => sprt/web/Sprt03Controller.java} (54%) rename src/main/webapp/WEB-INF/jsp/fims/{crdn/crdn09010-main.jsp => sprt/sprt03010-main.jsp} (98%) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java similarity index 54% rename from src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java rename to src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java index 02e421ce..af9a687c 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java @@ -1,20 +1,16 @@ -package cokr.xit.fims.crdn.web; +package cokr.xit.fims.sprt.web; import org.springframework.web.servlet.ModelAndView; -import cokr.xit.base.web.ApplicationController; - -public class Crdn09Controller extends ApplicationController { - +public class Sprt03Controller { /** 동영상 재생 메인화면을 연다. - * @return fims/crdn/crdn09010-main + * @return fims/sprt/sprt03010-main */ public ModelAndView videoMain(String openerPageName) { ModelAndView mav = new ModelAndView(); - mav.setViewName("fims/crdn/crdn09010-main"); + mav.setViewName("fims/sprt/sprt03010-main"); mav.addObject("openerPageName", openerPageName); return mav; } - } diff --git a/src/main/java/cokr/xit/fims/task/CmnController.java b/src/main/java/cokr/xit/fims/task/CmnController.java index 16a248f5..3b2db764 100644 --- a/src/main/java/cokr/xit/fims/task/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/CmnController.java @@ -98,10 +98,10 @@ public class CmnController { } @Controller - @RequestMapping(name="동영상 재생", value="/crdn/crdn09") - class Crdn09Controller extends cokr.xit.fims.crdn.web.Crdn09Controller { + @RequestMapping(name="동영상 재생", value="/sprt/sprt03") + class Sprt03Controller extends cokr.xit.fims.sprt.web.Sprt03Controller { /** 동영상 재생 메인화면을 연다. - * @return fims/crdn/crdn09010-main + * @return fims/sprt/sprt03010-main */ @Override @RequestMapping(name="동영상 재생 메인", value="/010/main.do") diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 222ff7b8..23353e9c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -345,7 +345,7 @@ $(document).ready(function(){ $("#btnInst--${pageName}").on('click', () => $P.fnSave()); $("#btnAddFile--${pageName}").on('click', () => { $("#uploadFileList--${pageName}").trigger("click"); }); $("#btnOpenVideoCapture--${pageName}").on('click', () => { - window.open(wctx.url("/crdn/crdn09/010/main.do?openerPageName=${pageName}") + window.open(wctx.url("/sprt/sprt03/010/main.do?openerPageName=${pageName}") ,"newVideoCapture" ,"width=1800,height=950" ); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp similarity index 98% rename from src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp rename to src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp index 0bc3354e..67d9a5ef 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp @@ -106,6 +106,10 @@ var openerPageName = "${openerPageName}"; var scaleFactor = 0.25; var snapshots = []; +document.getElementById("file").addEventListener('change', function () { + document.getElementById("video").focus(); +}); + document.getElementById("video").addEventListener('play', function () { document.getElementById("btnCapture").focus(); });