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

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

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

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

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

Loading…
Cancel
Save