url 경로 수정

main
이범준 4 months ago
parent 8e7d8a1690
commit cf29004c20

@ -18,6 +18,7 @@ import cokr.xit.base.user.Sigungu;
import cokr.xit.base.user.SigunguQuery;
import cokr.xit.base.user.service.SigunguDepartmentService;
import cokr.xit.base.user.web.SigunguDepartmentController;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.base.FimsDepartment;
import cokr.xit.fims.base.FimsSigungu;
import cokr.xit.fims.base.OgdpQuery;
@ -32,24 +33,28 @@ import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject;
@Controller
public class OgdpController extends SigunguDepartmentController<Sigungu, Department> {
@RequestMapping(name = "시군구,기관,부서", value = "/ogdp")
public class OgdpController extends ApplicationController {
public class METHOD_URL {
public static final String
sggStngMain = "/ogdp/sggStngMain.do",
getSggStngInfo = "/ogdp/getSggStngInfo.do",
getTasks = "/ogdp/getTasks.do",
getVltns = "/ogdp/getVltns.do",
updateSggStng = "/ogdp/updateSggStng.do",
updateTaskStng = "/ogdp/updateTaskStng.do",
createTaskStng = "/ogdp/createTaskStng.do",
deptStngMain = "/ogdp/deptStngMain.do",
getDeptStngList = "/ogdp/getDeptStngList.do",
getDeptStngInfo = "/ogdp/getDeptStngInfo.do",
updateDeptStng = "/ogdp/updateDeptStng.do"
sggStngMain = "/sggStngMain.do",
getSggStngInfo = "/getSggStngInfo.do",
getTasks = "/getTasks.do",
getVltns = "/getVltns.do",
updateSggStng = "/updateSggStng.do",
updateTaskStng = "/updateTaskStng.do",
createTaskStng = "/createTaskStng.do",
deptStngMain = "/deptStngMain.do",
getDeptStngList = "/getDeptStngList.do",
getDeptStngInfo = "/getDeptStngInfo.do",
updateDeptStng = "/updateDeptStng.do"
;
}
@Controller
public class DefaultOgdpController extends SigunguDepartmentController<Sigungu, Department> {}
@Resource(name="sigunguDepartmentService")
private SigunguDepartmentService sggDeptService;

@ -26,11 +26,6 @@
<input name="instCd" type="hidden" />
<input name="instNm" type="text" class="form-control" readonly />
</div>
<div class="col-md-12">
<input name="instZipCode" type="text" class="form-control w-px-80" hidden />
<input name="instAddress" type="text" class="form-control w-px-300" hidden />
<input name="instDetailAddress" type="text" class="form-control w-px-300" hidden />
</div>
<div class="col-md-4 d-flex align-items-center">
<label class="w-px-140 col-form-label text-sm-end pe-2">
직인
@ -263,7 +258,7 @@ $(document).ready(function(){
$P.getSggInfo = async function(){
return new Promise((resolve, reject) => {
ajax.get({
url: wctx.url("user/ogdp/getSggStngInfo.do"),
url: wctx.url("/ogdp/getSggStngInfo.do"),
data: {
sggCd : $P.curSggCd
},
@ -275,10 +270,6 @@ $(document).ready(function(){
$("#mainForm--${pageName}").find("[name='instCd']").val($P.sggInfo.INST_CD);
$("#mainForm--${pageName}").find("[name='instNm']").val($P.sggInfo.INST_NM);
$("#mainForm--${pageName}").find("[name='instZipCode']").val($P.sggInfo.INST_ZIP);
$("#mainForm--${pageName}").find("[name='instAddress']").val($P.sggInfo.INST_ADDR);
$("#mainForm--${pageName}").find("[name='instDetailAddress']").val($P.sggInfo.INST_DADDR);
$("#offcsImage--${pageName}")
.attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH);
@ -309,7 +300,7 @@ $(document).ready(function(){
$P.getSggTaskInfo = async function(){
return new Promise((resolve, reject) => {
ajax.get({
url: wctx.url("user/ogdp/getTasks.do"),
url: wctx.url("/ogdp/getTasks.do"),
data: {
useYn : "Y",
sggCd : $P.curSggCd
@ -381,7 +372,7 @@ $(document).ready(function(){
$P.getVltnInfo = async function(){
return new Promise((resolve, reject) => {
ajax.get({
url: wctx.url("user/ogdp/getVltns.do"),
url: wctx.url("/ogdp/getVltns.do"),
data: {
useYN : "Y",
sggCd : $P.curSggCd
@ -421,7 +412,7 @@ $(document).ready(function(){
var formData = new FormData($("#mainForm--${pageName}")[0]);
ajax.post({
url: wctx.url("user/ogdp/updateSggStng.do"),
url: wctx.url("/ogdp/updateSggStng.do"),
data: formData,
contentType : false, processData : false,
success: (resp) => {
@ -478,7 +469,7 @@ $(document).ready(function(){
$("#selectTaskModal").modal("hide");
ajax.post({
url: wctx.url("user/ogdp/createTaskStng.do"),
url: wctx.url("/ogdp/createTaskStng.do"),
data: {
sggCd : $("#mainForm--${pageName}").find("[name='sggID']").val(),
taskSeCd : taskSeCd
@ -515,7 +506,7 @@ $(document).ready(function(){
}
ajax.post({
url: wctx.url("user/ogdp/updateTaskStng.do"),
url: wctx.url("/ogdp/updateTaskStng.do"),
data: formData,
contentType : false, processData : false,
success: (resp) => {

@ -157,8 +157,8 @@ $(document).ready(function(){
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.DEPT_CD : "",
urls : {
load : wctx.url("/user/ogdp/getDeptStngList.do"),
getInfo : wctx.url("/user/ogdp/getDeptStngInfo.do")
load : wctx.url("/ogdp/getDeptStngList.do"),
getInfo : wctx.url("/ogdp/getDeptStngInfo.do")
},
formats: {
REG_DT : datetimeFormat,

@ -287,7 +287,7 @@ $(document).ready(function(){
dataGetter : obj => obj["List"], appendData : true,
keymapper : info => info ? info.DEPT_CD : "",
urls : {
update : wctx.url("/user/ogdp/updateDeptStng.do")
update : wctx.url("/ogdp/updateDeptStng.do")
},
formats: {

@ -21,7 +21,7 @@
<script>
function fnGoToEditSgg(selected){
let menuUrl = wctx.url("user/ogdp/sggStngMain.do");
let menuUrl = wctx.url("/ogdp/sggStngMain.do");
let curTabId = getActiveRootTabArea().id;

Loading…
Cancel
Save