Compare commits

...

2 Commits

3 changed files with 68 additions and 5 deletions

View File

@ -115,7 +115,7 @@ public class ManageListController {
int nCls = -1;
if( request.getSession() != null && request.getSession().getAttribute("CLS") != null ) {
MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS"));
nCls = MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS"));
System.out.println("getManageList.do CLS:" + String.valueOf(nCls));
}
strUtil sUtil = new strUtil();
@ -201,6 +201,31 @@ public class ManageListController {
mapMetaInfo = (HashMap) arrayMetaInfo.get(0);
// 입력날짜
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,6 +3,17 @@
<html>
<head>
<title>지반정보 포털시스템 - 오류</title>
<style>
.error-message-title {
font-size: 18px;
font-weight: 900;
margin: 0px;
}
.error-message {
font-size: 18px;
margin: 0px;
}
</style>
</head>
<body>
<div style="text-align: center; width: 100%; padding-top: 20px;">
@ -16,9 +27,8 @@
<%-- 3. 컨트롤러에서 전달받은 에러 메시지 표시 --%>
<c:if test="${not empty errorMessage}">
<br/>
<strong>[오류 상세 내용]</strong>
<br/>
<c:out value="${errorMessage}" />
<p class="error-message-title">[오류 상세 내용]</p>
<p class="error-message"><c:out value="${errorMessage}" /></p>
</c:if>
</pre>
<br/>

View File

@ -166,10 +166,26 @@ function kendoGrid() {
dataSource : gridData,
columns: [
{ 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",
title: "프로젝트명",
headerAttributes: {
"data-target": "projectName"
},
template: function(data){
var param = "'"+data.reportType+"','"+data.projectCode+"','"+data.state+"'";
let myStyle = "";
@ -258,6 +274,18 @@ function fn_help_tour(){
title:'Step 2',
content: '프로젝트 목록이 조회 되며, 프로젝트명을 클릭하시면 해당 프로젝트를 조회 또는 입력하실 수 있습니다. ',
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;