|
asdf
|
※ 조사 기간이 종료된 프로젝트 조회 ※ 검색 조건을 선택하세요.
|
<%'end if' if chk_admin = "admin" then
sql = "SELECT a.*, "
sql = sql & " b.p_order AS p_order "
sql = sql & "FROM dbo.project a LEFT OUTER JOIN "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " dbo.person b ON a.p_dper = b.p_no "
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " dbo.person b ON a.p_sv = b.p_no "
else
sql = "select * from project as a "
end if
sql = sql & "where p_field_end < '" & ConDate & "'" ' and substring(p_field_end,1,7) = '" & mid(condate,1,7) & "'"
' sql = sql & " and substring(p_sn,5,3) <> '000' " '홍근테스트전용들 및 개발 프로그램들
if sc_month <> "0" and sc_month <> "" then
'원본
'2005-09-27 필드스타트 날짜의 월별 검색으로 변경(p_field_st)
sql = sql & " and substring(p_field_end,1,4) = '" & zeroformat(sc_year,4) & "'" '년별
sql = sql & " and substring(p_field_end,6,2) = '" & zeroformat(sc_month,2) & "'" '월별
else
sql = sql & " and substring(p_field_end,1,4) = '" & zeroformat(sc_year,4) & "'" '년별
end if
if sc_team <> "0" and sc_team <> "" then
sql = sql & " and a.p_depart_dep='" & sc_team & "'" '팀별
end if
if sc_name <> "" then
sql = sql & " and a.p_subject like '%" & sc_name & "%'" '프로젝트이름별
end if
''로그인 사용자별 권한주기..
'연구팀장은 해당 부서의 전체의 것
'연구팀원은 자기 자신의 것만
'자료조사부, 정보분석부 팀장/팀원은 모두
'자료조사부 팀원은 자기 자신의 것만
'
if chk_admin = "etc_buser1" then '연구부서
sql = sql & " and substring(p_sn,5,1) = '" & cint(Session("Depart_Code")) & "' " '자기 부서만
if Session("admin_Code") <> "True" then '팀장이 아니면 연구원 자신의 이름이 들어간 모든 프로젝트
sql = sql & "and ("
sql = sql & "p_rsch_1 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_2 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_3 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_4 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_5 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_6 = '" & Session("user_number") & "' "
sql = sql & ") "
end if
elseif chk_admin = "field" then '자료조사
end if
sql = sql & " and (substring(p_sn,1,2) <> '08') "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " order by p_order, p_field_end, p_subject"' p_dper,p_name, p_field_end"
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " order by p_sv, p_field_end"
else
sql = sql & " order by p_subject "
end if
Rs.open sql, adoconn,adopenstatic, adlockreadonly
prj_search_cnt = Rs.recordcount
tmpstr= sc_year & "년 "
if cint(sc_month) > 0 then
tmpstr = tmpstr & sc_month & "월 "
end if
if cint(sc_team) > 0 then
for i = 1 to krc_team_cnt
if cint(krc_team(i,1)) = cint(sc_team) then
tmpstr = tmpstr & krc_team(i,2)
exit for
end if
next
end if
%>
| ◆ <%=Response.Write (u_name)%>님 <%=condate%> 일 현재 (조건:<%=tmpstr%>) 종료 프로젝트 목록입니다.(<%=prj_search_cnt%>개)
|
|
| 프로젝트명 |
조사내용 |
조사방법 |
샘플수 |
담당연구 |
담당전산 |
담당SV |
실사시작일 |
실사종료일 |
펀치종료일 |
직접비 관리 |
직접비 |
<% if Rs.recordcount<1 then %>
| 현재 완료된 프로젝트가 없습니다. |
|
|
<% else
prj_dp = ""
for i=0 to ubound(db_p_dp)
db_p_dp(i,3) = 0
next
for i=0 to ubound(db_p_sv)
db_p_sv(i,3) = 0
next
for i=0 to ubound(db_p_research)
db_p_research(i,3) = 0
next
tmp_bgcolor="#dbe9f2"
do until Rs.EOF
line_cnt = line_cnt + 1
method = Rs("p_method")
sql = "select * from p_method where code1 = '" & method & "'"
' Response.Write sql
' Response.Write RS("p_sn")
AdoRs.open sql, adoconn,adopenstatic, adlockreadonly
method = adors("name1")
AdoRs.close
tmpstr = "조사방법 : " & method & " "
tmpstr = tmpstr & "조사내용 : " & Rs("p_intention")
sample_cnt = rs("p_sample")
if tmp_bgcolor="" then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
| <%=Rs("p_subject")%> |
<%=replace(csformat(Rs("p_intention"),30)," ","")%> |
<%i = cint(instr(1,method,"("))
if i > 0 then
tmpstr = mid(method,1,i - 1)
else
tmpstr = method
end if
Response.Write tmpstr
%>
|
<%=formatnumber(sample_cnt,0)%> |
<%''담당 연구원
tmpstr=" "
for i=0 to ubound(db_p_research)
if db_p_research(i,1) = rs("p_rsch_1") then
tmpstr = db_p_research(i,2)
db_p_research(i,3) = cint(db_p_research(i,3)) + 1''연구 담당별 프로젝트 갯수 카운드
end if
next
if tmpstr=" " then '퇴직자 찾기
sql = "SELECT * "
sql = sql & "FROM Person "
sql = sql & "WHERE ( p_resign='1' )"
sql = sql & " and p_no = '" & rs("p_rsch_1") & "'"
sql = sql & "order by p_order "
AdoRs.Open sql, adoConn, 1%>
<%
if AdoRs.recordcount > 0 then
%>
<%tmpstr = AdoRs("p_name")%>
<%
end if
%>
<%AdoRs.Close
end if%>
<%=tmpstr%> |
<%''담당 전산
tmpstr=" "
for i=0 to ubound(db_p_dp)
if db_p_dp(i,1) = rs("p_dper") then
tmpstr = db_p_dp(i,2)
db_p_dp(i,3) = cint(db_p_dp(i,3)) + 1''dp담당별 프로젝트 갯수 카운드
end if
next
if tmpstr=" " and trim(rs("p_dper")) <> "" then '퇴직자 찾기
sql = "SELECT * "
sql = sql & "FROM Person "
' sql = sql & "WHERE ( p_resign='1' )"
sql = sql & "WHERE p_no = '" & rs("p_dper") & "'"
sql = sql & " order by p_order "
AdoRs.Open sql, adoConn, 1
%>
<%prj_dp = AdoRs("p_name")%>
<%AdoRs.Close
else
prj_dp = tmpstr '담당dp
end if
%>
<%=prj_dp%> |
<%''담당 sv
tmpstr=" "
for i=0 to ubound(db_p_sv)
if db_p_sv(i,1) = rs("p_sv") then
tmpstr = db_p_sv(i,2)
db_p_sv(i,3) = cint(db_p_sv(i,3)) + 1''sv 담당별 프로젝트 갯수 카운드
end if
next
if tmpstr=" " and trim(rs("p_sv")) <> "" then '퇴직자 찾기
sql = "SELECT * "
sql = sql & "FROM Person "
sql = sql & "WHERE ( p_resign='1' )"
sql = sql & " and p_no = '" & rs("p_sv") & "'"
sql = sql & " order by p_order "
AdoRs.Open sql, adoConn, 1
if isnull(AdoRs("p_name")) then
tmpstr = ""
else
tmpstr = AdoRs("p_name")
end if
AdoRs.Close
end if
%>
<%=tmpstr%> |
<%=Rs("p_field_st")%> |
<%=Rs("p_field_end")%> |
<%=Rs("P_punch_end")%> |
<%
tmpstr = default_path_root & "inspection/project_direct_cost.asp?url_posi=project_stat&p_sn=" & RS("p_sn") & "&p_method=" & Rs("p_method")
if tmpstr = "해당프로젝트에 조사방법이 등록되어 있지 않습니다" then%>
관 리
<%else
if cint(Session("Depart_Code") ) < 11 or (cint(Session("Depart_Code") ) >= 20 and cint(Session("Depart_Code") ) <=60) then '연구부서이면
tmpstr = tmpstr & "&printmode=1"%>
관리
<%else
' tmpstr = tmpstr & "&url_posi=project_stat"
tmpstr = tmpstr & "&sc_year=" & sc_year
tmpstr = tmpstr & "&sc_month=" & sc_month
tmpstr = tmpstr & "&sc_team=" & sc_team
tmpstr = tmpstr & "&sc_name=" & sc_name%>
관리
<%end if
%>
<%end if%>
|
<%if not isnull(rs("p_esti_cost")) then%>
<%=formatnumber(rs("p_esti_cost"),0)%>
<%end if%>
|
<%
Rs.movenext
loop
end if ' if Rs.recordcount<1 then
Rs.Close
%>
<%'dp담당별 프로젝트 갯수 카운드 보여주기
if ((Session("Depart_Code") = "15" or Session("Depart_Code") = "17") and Session("admin_Code") = "1") then '전산팀장 %>
>
| 담당 DP 별 종료 갯수(전산팀장만보임) |
<%for i = 1 to ubound(db_p_dp)%>
<%=db_p_dp(i, 2)%> => <%=db_p_dp(i, 3)%> 개
|
<%next%>
<%end if%>
|
<%''//================================
''//================================
''현재 진행중인 프로젝트 목록(계약 상태로 )
''//================================
''//================================
sql = ""
if chk_admin = "admin" then
sql = "SELECT a.*, "
sql = sql & " b.p_order AS p_order "
sql = sql & "FROM dbo.project a LEFT OUTER JOIN "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " dbo.person b ON a.p_dper = b.p_no "
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " dbo.person b ON a.p_sv = b.p_no "
else
sql = "select * from project "
end if
sql = sql & "where (( p_field_end >= '" & ConDate & "')"
' sql = sql & " and substring(p_sn,5,3) <> '000') " '홍근테스트전용들 및 개발 프로그램들
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "' ) "' and substring(p_sn,5,3) <> '000') " '실사기간이 없는 것
sql = sql & " ) "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
' sql = sql & " order by p_order, a.p_field_end, a.p_subject"' p_dper,p_name, p_field_end"
sql = sql & " order by p_order, a.p_subject, p_field_end"
elseif Session("Depart_Code") = "12" then
sql = sql & " order by p_order, p_subject"
else
sql = sql & " order by p_subject"
end if
elseif chk_admin = "field" then '자료조사부 팀원
sql = "select * from project where ((p_sv = '" & Session("user_number") & "' and p_field_end >= '" & ConDate & "') "
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "')"' and substring(p_sn,5,3) <> '000') " '실사기간이 없는 것
sql = sql & " ) "
sql = sql & " order by p_subject"
elseif chk_admin = "etc_buser1" then '연구부서
if Session("admin_Code") ="True" or Session("admin_Code") = "1" then '부서장이면
sql = "select * "
sql = sql & "from project "
sql = sql & " where (((p_field_end >= '" & ConDate & "')"'
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "'))"'
sql = sql & " and substring(p_sn,5,1) = '" & Session("Depart_Code") & "'"
sql = sql & " ) "
sql = sql & " order by p_subject"
else
sql = "select *"
sql = sql & " from project "
sql = sql & " where ( "
sql = sql & "p_rsch_1 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_2 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_3 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_4 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_5 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_6 = '" & Session("user_number") & "' "
sql = sql & ") "
sql = sql & " and ( "
sql = sql & " p_field_end >= '" & ConDate & "'"
' sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "') "' and substring(p_sn,5,3) <> '000') " '실사기간이 없는 것
sql = sql & " ) "
sql = sql & " order by p_subject"
end if
elseif chk_admin = "etc_buser2" then '정보분석부, 자료조사부, 연구부서를 제외한 나머지팀, 즉 경영지원실
alert2("사용권한이 없습니다")
end if
Rs.open sql, adoconn,adopenstatic, adlockreadonly
prj_search_cnt = Rs.recordcount
if chk_admin <> "etc_buser" then%>
<% if chk_admin = "admin" then %>
| ◆ <%=Response.Write (u_name)%>님 현재 계약 상태로 실사중인 프로젝트 목록입니다.
<% else%>
| ◆ <%=Response.Write (u_name)%>님의 현재 계약 상태로 진행 중 프로젝트 목록입니다.
<% end if %>
실사기간이 오늘날짜 포함 : <%=prj_search_cnt%>개(실사종료일이 지난것은 보이지 않음)
◆ 담당SV, 담당DP가 지정되지 않은 프로젝트는 모든 직원에게 보입니다.
|
| 계약으로 등록된 프로젝트 중 실사가 현재 진행중이거나, 진행 예정인 프로젝트 목록입니다. |
<% if Rs.recordcount<1 then %>
| 현재 진행중인 프로젝트가 없습니다. |
|
|
<% else %>
<% 'line_cnt = 0
prj_dp = ""
for i=0 to ubound(db_p_dp)
db_p_dp(i,3) = 0
next
for i=0 to ubound(db_p_sv)
db_p_sv(i,3) = 0
next
for i=0 to ubound(db_p_research)
db_p_research(i,3) = 0
next
tmp_bgcolor="#dbe9f2"
do until Rs.EOF
line_cnt = line_cnt + 1
method = Rs("p_method")
if trim(method ) <> "" then
sql = "select * from p_method where code1 = " & method
AdoRs.open sql, adoconn,adopenstatic, adlockreadonly
method = adors("name1")
AdoRs.close
else
method = " "
end if
tmpstr = "조사방법 : " & method & " "
tmpstr = tmpstr & "조사내용 : " & Rs("p_intention")
sample_cnt = rs("p_sample")
if tmp_bgcolor="" then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
| <%=Rs("p_subject")%> |
<%=replace(csformat(Rs("p_intention"),30)," ","")%> |
<%i = cint(instr(1,method,"("))
if i > 0 then
tmpstr = mid(method,1,i - 1)
else
tmpstr = method
end if
Response.Write tmpstr
%>
|
<%=formatnumber(sample_cnt,0)%> |
<%''담당 연구원
tmpstr=" "
for i=0 to ubound(db_p_research)
if db_p_research(i,1) = rs("p_rsch_1") then
tmpstr = db_p_research(i,2)
db_p_research(i,3) = cint(db_p_research(i,3)) + 1''연구 담당별 프로젝트 갯수 카운드
end if
next%>
<%=tmpstr%> |
<%''담당 전산
tmpstr=" "
for i=0 to ubound(db_p_dp)
if db_p_dp(i,1) = rs("p_dper") then
tmpstr = db_p_dp(i,2)
db_p_dp(i,3) = cint(db_p_dp(i,3)) + 1''dp담당별 프로젝트 갯수 카운드
end if
next
prj_dp = tmpstr '담당dp
%>
<%=prj_dp%> |
<%''담당 sv
tmpstr=" "
for i=0 to ubound(db_p_sv)
if db_p_sv(i,1) = rs("p_sv") then
tmpstr = db_p_sv(i,2)
db_p_sv(i,3) = cint(db_p_sv(i,3)) + 1''sv 담당별 프로젝트 갯수 카운드
end if
next
prj_sv = tmpstr
%>
<%=prj_sv%> |
<%=Rs("p_field_st")%> |
<%=Rs("p_field_end")%> |
<%=Rs("P_punch_end")%> |
<%
tmpstr = Rs("p_method")
if trim(tmpstr) <> "" then
tmpstr = default_path_root & "inspection/project_direct_cost.asp?url_posi=project_stat&p_sn=" & RS("p_sn") & "&p_method=" & Rs("p_method")
if tmpstr = "해당프로젝트에 조사방법이 등록되어 있지 않습니다" then%>
관리
<%else
if cint(Session("Depart_Code") ) < 11 or (cint(Session("Depart_Code") ) >= 20 and cint(Session("Depart_Code") ) <=60) then '연구부서이면
tmpstr = tmpstr & "&printmode=1"%>
관리
<%else
' tmpstr = tmpstr & "&url_posi=project_stat"
tmpstr = tmpstr & "&sc_year=" & sc_year
tmpstr = tmpstr & "&sc_month=" & sc_month
tmpstr = tmpstr & "&sc_team=" & sc_team
tmpstr = tmpstr & "&sc_name=" & sc_name%>
관리
<%end if
%>
<%end if
else%>
관리
<%end if%>
|
<%if not isnull(rs("p_esti_cost")) then%>
<%=formatnumber(rs("p_esti_cost"),0)%>
<%end if%>
|
<%
Rs.movenext
loop
end if 'if Rs.recordcount<1 then
Rs.Close
%>
<%'dp담당별 프로젝트 갯수 카운드 보여주기
if ((Session("Depart_Code") = "15" or Session("Depart_Code") = "17") and Session("admin_Code") = "1") then '전산팀장 %>
| 담당 DP 별 진행중 갯수(전산팀장만보임) |
<%for i = 1 to ubound(db_p_dp)%>
<%=db_p_dp(i, 2)%> => <%=db_p_dp(i, 3)%> 개
|
<%next%>
<%end if%>
<%end if 'if chk_admin <> "etc_buser" then%>
|
|