회원가입 화면 수정

main
이범준 5 months ago
parent 0b34df11bf
commit b25f45f23d

@ -81,14 +81,14 @@ public class MainController extends cokr.xit.base.web.MainController {
} }
@GetMapping(name="회원가입 페이지", value="/signupPage.do") @GetMapping(name="회원가입 페이지", value="/signupPage.do")
public ModelAndView signupPage(String institute) { public ModelAndView signupPage(String sggCd) {
ModelAndView mav = new ModelAndView("fims/user/user-info"); ModelAndView mav = new ModelAndView("fims/user/user-info");
mav.addObject("allOgdpList", fimsOgdpBean.selectAllOgdpList()); mav.addObject("allOgdpList", fimsOgdpBean.selectAllOgdpList());
DataObject params = new DataObject(); DataObject params = new DataObject();
params.set("anonymous", "Y"); params.set("anonymous", "Y");
params.set("institute", institute); params.set("sggCd", sggCd);
List<DataObject> ableOgdpList = fimsOgdpBean.selectAbleOgdpList(params); List<DataObject> ableOgdpList = fimsOgdpBean.selectAbleOgdpList(params);
mav.addObject("ableOgdpList", ableOgdpList); mav.addObject("ableOgdpList", ableOgdpList);

@ -94,8 +94,8 @@
</div> </div>
</div> </div>
<template id="selectInstDialogTemplate"> <template id="selectOrgDialogTemplate">
<select class="form-select form-control-sm" id="selectInst"> <select class="form-select form-control-sm" id="selectOrg">
<option value="">선택</option> <option value="">선택</option>
<c:forEach items="${sggList}" var="item"> <c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option> <option value="${item.SGG_CD}">${item.SGG_NM}</option>
@ -160,25 +160,25 @@ function login() {
*/ */
function fnOpenSignup(){ function fnOpenSignup(){
dialog.open({ dialog.open({
id : "selectInstDialog", id : "selectOrgDialog",
title : "기관 선택", title : "기관 선택",
content : document.getElementById("selectInstDialogTemplate").innerHTML, content : document.getElementById("selectOrgDialogTemplate").innerHTML,
size : "sm", size : "sm",
init : () => { init : () => {
}, },
onOK : () => { onOK : () => {
if($("#selectInst").val() == ""){ if($("#selectOrg").val() == ""){
alert("기관을 선택하세요."); alert("기관을 선택하세요.");
return; return;
} }
dialog.close("selectInstDialog"); dialog.close("selectOrgDialog");
var popupWidth = 950; var popupWidth = 950;
var popupHeight = 500; var popupHeight = 500;
var popupX = (window.screen.width / 2) - (popupWidth / 2); var popupX = (window.screen.width / 2) - (popupWidth / 2);
var popupY= (window.screen.height / 2) - (popupHeight / 2); var popupY= (window.screen.height / 2) - (popupHeight / 2);
var popup = window.open(wctx.url("/signupPage.do")+"?institute="+$("#selectInst").val(), var popup = window.open(wctx.url("/signupPage.do")+"?sggCd="+$("#selectOrg").val(),
"regAccount", "regAccount",
"width="+popupWidth+", height="+popupHeight+", left="+popupX+", top="+popupY); "width="+popupWidth+", height="+popupHeight+", left="+popupX+", top="+popupY);
@ -232,7 +232,7 @@ $(function(){
} }
selectValue = sysSgg; selectValue = sysSgg;
isSelectable = $("#institute option[value='"+selectValue+"']").not("[disabled]").length; isSelectable = $("#orgID option[value='"+selectValue+"']").not("[disabled]").length;
if(isSelectable){ if(isSelectable){
$("#orgID").val(selectValue); $("#orgID").val(selectValue);
$("#userId").focus(); $("#userId").focus();

Loading…
Cancel
Save