Compare commits

..

No commits in common. "68d34c5863b827759395dd738198e641d96babd6" and "09f09766a2a5430c2ecbc7a9330b062424c57552" have entirely different histories.

3 changed files with 5 additions and 68 deletions

View File

@ -115,7 +115,7 @@ public class ManageListController {
int nCls = -1; int nCls = -1;
if( request.getSession() != null && request.getSession().getAttribute("CLS") != null ) { if( request.getSession() != null && request.getSession().getAttribute("CLS") != null ) {
nCls = MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS")); MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS"));
System.out.println("getManageList.do CLS:" + String.valueOf(nCls)); System.out.println("getManageList.do CLS:" + String.valueOf(nCls));
} }
strUtil sUtil = new strUtil(); strUtil sUtil = new strUtil();
@ -201,31 +201,6 @@ public class ManageListController {
mapMetaInfo = (HashMap) arrayMetaInfo.get(0); mapMetaInfo = (HashMap) arrayMetaInfo.get(0);
// 입력날짜 // 입력날짜
inputdata = wUtil.isNullOb(mapMetaInfo.get("INPUTDATE"),wUtil.getToday()); inputdata = wUtil.isNullOb(mapMetaInfo.get("INPUTDATE"),wUtil.getToday());
int nCls = -1;
if( request.getSession() != null && request.getSession().getAttribute("CLS") != null ) {
nCls = MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS"));
System.out.println("getManageList.do CLS:" + String.valueOf(nCls));
}
String loginUserId = String.valueOf(request.getSession().getAttribute("USERID"));
String ownerUserId = MyUtil.getStringFromObject( mapMetaInfo.get("USERID") );
if( loginUserId == null || loginUserId.trim().equals("") ) {
// 로그인이 필요한 서비스 입니다. 401
model.put("errorMessage", "로그인이 필요한 서비스 입니다.");
model.put("errorCode", 401);
return "/error";
}
if( ownerUserId == null || ownerUserId.trim().equals("") ) {
// 프로젝트 소유자 기업 아이디가 지정되어 있지 않습니다. 400: "요청하신 데이터의 상태가 이상해서 처리를 못 하겠어요." (데이터 부재/형식 오류)
model.put("errorMessage", "프로젝트 소유자 기업 아이디가 지정되어 있지 않습니다.");
model.put("errorCode", 400);
return "/error";
}
if( nCls == 1 && !loginUserId.trim().equals(ownerUserId.trim()) ) {
// 권한이 없습니다. 403
model.put("errorMessage", "권한이 없습니다.");
model.put("errorCode", 403);
return "/error";
}
} }
//프로젝트 정보 //프로젝트 정보

View File

@ -3,17 +3,6 @@
<html> <html>
<head> <head>
<title>지반정보 포털시스템 - 오류</title> <title>지반정보 포털시스템 - 오류</title>
<style>
.error-message-title {
font-size: 18px;
font-weight: 900;
margin: 0px;
}
.error-message {
font-size: 18px;
margin: 0px;
}
</style>
</head> </head>
<body> <body>
<div style="text-align: center; width: 100%; padding-top: 20px;"> <div style="text-align: center; width: 100%; padding-top: 20px;">
@ -27,8 +16,9 @@
<%-- 3. 컨트롤러에서 전달받은 에러 메시지 표시 --%> <%-- 3. 컨트롤러에서 전달받은 에러 메시지 표시 --%>
<c:if test="${not empty errorMessage}"> <c:if test="${not empty errorMessage}">
<br/> <br/>
<p class="error-message-title">[오류 상세 내용]</p> <strong>[오류 상세 내용]</strong>
<p class="error-message"><c:out value="${errorMessage}" /></p> <br/>
<c:out value="${errorMessage}" />
</c:if> </c:if>
</pre> </pre>
<br/> <br/>

View File

@ -166,26 +166,10 @@ function kendoGrid() {
dataSource : gridData, dataSource : gridData,
columns: [ columns: [
{ field: "rowNumber", width: 50, title: "순번", template: "<span class='row-number'></span>" }, { field: "rowNumber", width: 50, title: "순번", template: "<span class='row-number'></span>" },
{ {field: "reqCompany", width: 180, title: "배정 발주기관", template: function (data) { return data.lastDistrict || data.gsDistrict || data.gmDistrict || data.glDistrict || ""; }, attributes: { style: "text-align: left" }},
field: "reqCompany",
width: 180,
title: "배정 발주기관",
headerAttributes: {
"data-target": "reqCompany"
},
template: function (data) {
return data.lastDistrict || data.gsDistrict || data.gmDistrict || data.glDistrict || "";
},
attributes: {
style: "text-align: left"
}
},
{ {
field: "projectName", field: "projectName",
title: "프로젝트명", title: "프로젝트명",
headerAttributes: {
"data-target": "projectName"
},
template: function(data){ template: function(data){
var param = "'"+data.reportType+"','"+data.projectCode+"','"+data.state+"'"; var param = "'"+data.reportType+"','"+data.projectCode+"','"+data.state+"'";
let myStyle = ""; let myStyle = "";
@ -274,18 +258,6 @@ function fn_help_tour(){
title:'Step 2', title:'Step 2',
content: '프로젝트 목록이 조회 되며, 프로젝트명을 클릭하시면 해당 프로젝트를 조회 또는 입력하실 수 있습니다. ', content: '프로젝트 목록이 조회 되며, 프로젝트명을 클릭하시면 해당 프로젝트를 조회 또는 입력하실 수 있습니다. ',
target:'grid' target:'grid'
},{
title:'Step 3',
content: '프로젝트는 두가지로 구분됩니다.<br /><br /><span style="font-weight: 800;">일반 프로젝트</span>: 기업사용자가 생성한 일반 프로젝트<br /><span style="font-weight: 800;">발주기관과 연결된 프로젝트</span>: 발주기관에서 생성한 프로젝트',
target:'reqCompany'
},{
title:'Step 4',
content: '공란이면 일반 프로젝트이며, 발주기관과 연결된 프로젝트인 경우 발주기관 명이 표시됩니다. 이 경우, 프로젝트명 수정 없이 입력바랍니다.',
target:'reqCompany'
},{
title:'Step 5',
content: '<span style="color: #000000;">프로젝트명 검정색</span>: 일반 프로젝트<br /><br /><span style="color: #001dff;">프로젝트명 파란색</span>: 기업사용자가 프로젝트 생성 시, 발주기관 프로젝트를 선택한 경우.<br />기업사용자&#9758;발주기관<br /><br /><span style="color: #2cbfc8;">프로젝트명 하늘색</span>: 발주기관사용자가 기업사용자에게 할당한 프로젝트.<br />발주기관 사용자&#9758;기업 사용자',
target:'projectName'
}], }],
}); });
return false; return false;