963 lines
30 KiB
Plaintext
963 lines
30 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<!-- #include file = "../include/top_menu.asp" -->
|
|
<%
|
|
SET rsp = server.CreateObject("ADODB.RECORDSET")
|
|
|
|
dim prj_list(20 , 25)
|
|
|
|
x = request("x")
|
|
p_depart = request("p_depart")
|
|
p_team = request("p_team")
|
|
flag = request("flag") 'my_menu.asp에서 보내오는 값 (tmp_stat_flag와 비교)
|
|
tmp_sort = request("tmp_sort")
|
|
tmp_month = request("tmp_month")
|
|
tmp_year = request("tmp_year")
|
|
p_team_people = request("p_team_people")
|
|
|
|
chk = request("chk") '부서가 변경되면 팀을 전체로 초기화 함
|
|
|
|
if request("gotopage") <> "" then
|
|
tmp_currentpage = request("gotopage")
|
|
else
|
|
tmp_currentpage = 1
|
|
end if
|
|
|
|
'page config
|
|
tmp_colspan = 9
|
|
|
|
'---------------------------------------------------------------------------------------
|
|
'### 20100203 수정 : person 테이블, 세션을 활용하여 로그인자의 직급과 뷰한도를 명시
|
|
'### 사장이나 운영본부라면 모든 본부와 팀의 프로젝트를 뷰함 view_depart = "", view_team = ""
|
|
'### 연구부서라면 소속본부 프로젝트와 팀의 프로젝트만 뷰함
|
|
'### 팀이 없는 연구원이라면 해당 부서의 모든 팀 프로젝트를 뷰함
|
|
if Session("teamplace") >= 6 then '사장 이상이면 전부 뷰
|
|
view_depart = ""
|
|
view_team = ""
|
|
view_team_people= ""
|
|
elseif Session("Depart_Code") < 10 or (Session("Depart_Code") >= 20 and Session("Depart_Code") =< 49) then '연구부서인가?
|
|
if Session("Depart_Code") = 0 then
|
|
view_depart = Session("job_view")
|
|
else
|
|
view_depart = Session("Depart_Code")
|
|
end if
|
|
if Session("teamcode") > 0 then '팀이 존재하는가?
|
|
view_team = ""
|
|
if p_team = "" then
|
|
p_team = Session("teamcode")
|
|
end if
|
|
else
|
|
view_team = ""
|
|
end if
|
|
else '운영본부인가?
|
|
view_depart = ""
|
|
view_team = ""
|
|
view_team_people= ""
|
|
end if
|
|
|
|
tmp_txt = split(view_depart, ",")
|
|
view_depart = ""
|
|
for i = 0 to ubound(tmp_txt)
|
|
if cint(tmp_txt(i)) < 10 or (cint(tmp_txt(i)) >=20 and cint(tmp_txt(i)) <= 49) then
|
|
view_depart = view_depart & tmp_txt(i) & ","
|
|
end if
|
|
next
|
|
'---------------------------------------------------------------------------------------
|
|
|
|
if p_depart = "" then
|
|
if instr(1, view_depart, ",") then
|
|
p_depart = cstr(trim(tmp_txt(0)))
|
|
else
|
|
p_depart = view_depart
|
|
end if
|
|
end if
|
|
|
|
if p_depart = "" then
|
|
p_depart= 0
|
|
end if
|
|
|
|
if chk = "1" then '부서를 선택하여 바꾸면 팀을 초기화 해줌.
|
|
p_team = ""
|
|
p_team_people = ""
|
|
elseif chk = "2" then '팀을 선택하여 바꾸면 사람을 초기화 해줌.
|
|
p_team_people = ""
|
|
end if
|
|
|
|
if tmp_year = "" then
|
|
tmp_year = cstr(year(date()))
|
|
end if
|
|
|
|
if tmp_month = "" then
|
|
tmp_month = cstr(month(date()))
|
|
end if
|
|
%>
|
|
|
|
<script language=javascript>
|
|
|
|
|
|
function openit(a,z,x) {
|
|
if (a == 1)
|
|
{
|
|
var url = 'project_list2_chk.asp?p_sn=' + z + '&teamname=' + x;
|
|
var tmp_width = 850;
|
|
var tmp_height = 800;
|
|
}
|
|
|
|
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
|
|
|
|
}
|
|
|
|
function subit(b) {
|
|
document.pms.action = "project_list2_withdate.asp?x=7&chk="+b;
|
|
document.pms.submit();
|
|
|
|
}
|
|
</script>
|
|
|
|
<form name="pms" method="post">
|
|
|
|
<td width="100%" valign="top">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<!-- 확인 -->
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="padding:20;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
<font class="brown">검색 조건을 선택하세요.</font>
|
|
</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:5 0 0 0">
|
|
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
|
|
<tr>
|
|
<td bgcolor="#DFDFDF" style="padding:0 0 0 10">
|
|
부서
|
|
<select name="p_depart" onChange="subit('1')">
|
|
<%
|
|
if view_depart = "" then
|
|
%>
|
|
<option value="0" <% if p_depart = "0" then %> selected <% end if %>>전체</option>
|
|
<%
|
|
end if
|
|
|
|
query = "SELECT * " & _
|
|
"FROM depart " & _
|
|
"WHERE d_yes_no = 'Y' " & _
|
|
" AND (" & _
|
|
" (d_code > 0 AND d_code < 11) " & _
|
|
" or " & _
|
|
" (d_code >= 20 AND d_code <= 49) " & _
|
|
")"
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
for i = 1 to rsc.RecordCount
|
|
'if view_depart = rsc("d_code") OR instr(1, view_depart, rsc("d_code")) OR view_depart = "" then
|
|
if cint(Session("Depart_Code")) = cint(rsc("d_mcode")) OR view_depart = "" then
|
|
%>
|
|
<option value="<%=rsc("d_code")%>" <% if cstr(p_depart) = cstr(rsc("d_code")) then %> selected <% end if %>><%=rsc("d_name")%></option>
|
|
<%
|
|
end if
|
|
rsc.MoveNext
|
|
next
|
|
end if
|
|
rsc.Close
|
|
|
|
if cint(tmp_year) < 2013 then
|
|
if cint(Session("Depart_Code")) >= 31 and cint(Session("Depart_Code")) <= 34 then
|
|
%>
|
|
<option value="1" <% if cint(p_depart) = 1 then %> selected <% end if %>>사회여론조사본부</option>
|
|
<%
|
|
elseif cint(Session("Depart_Code")) >= 35 and cint(Session("Depart_Code")) <= 38 then
|
|
%>
|
|
<option value="2"<% if cint(p_depart) = 2 then %> selected <% end if %> >마케팅본부</option>
|
|
<%
|
|
else
|
|
%>
|
|
<option value="1" <% if cint(p_depart) = 1 then %> selected <% end if %>>사회여론조사본부</option>
|
|
<option value="2"<% if cint(p_depart) = 2 then %> selected <% end if %> >마케팅본부</option>
|
|
<%
|
|
|
|
end if
|
|
end if
|
|
|
|
%>
|
|
</select>
|
|
|
|
|
|
<%
|
|
if p_depart <> "" AND p_depart <> "0" then
|
|
%>
|
|
팀
|
|
<select name="p_team" onChange="subit('2')">
|
|
<%
|
|
if view_team = "" then
|
|
%>
|
|
<option value="0" <% if p_team = "0" then %> selected <% end if %>>전체</option>
|
|
<%
|
|
end if
|
|
|
|
query = "SELECT Distinct p_team " & _
|
|
"FROM person " & _
|
|
"WHERE p_resign = '0' " & _
|
|
" AND p_team <> '0' " & _
|
|
" AND p_depart = '" & p_depart & "' "
|
|
if view_team <> "" AND view_team <> "0" then
|
|
query = query & " AND p_team = '" & view_team & "' "
|
|
end if
|
|
Response.Write query & "<BR>"
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<option value="<%=rsc("p_team")%>" <% if cstr(p_team) = cstr(rsc("p_team")) then %> selected <% end if %>><%=rsc("p_team")%> 팀</option>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
end if
|
|
rsc.Close
|
|
%>
|
|
</select>
|
|
|
|
<%
|
|
end if
|
|
%>
|
|
|
|
<%
|
|
if p_depart <> "" AND p_depart <> "0" then
|
|
%>
|
|
팀원
|
|
<select name="p_team_people" onChange="subit()">
|
|
<%
|
|
if view_team_people = "" then
|
|
%>
|
|
<option value="0" <% if p_team_people = "0" then %> selected <% end if %>>전체</option>
|
|
<%
|
|
end if
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM person "
|
|
query = query & "WHERE p_resign = '0' "
|
|
query = query & " AND p_depart = '" & p_depart & "' "
|
|
if p_team <> "" AND p_team <> "0" then
|
|
query = query & " AND p_team = '" & p_team & "' "
|
|
end if
|
|
query = query & " AND p_job_view_depart < 10 "
|
|
query = query & "ORDER BY p_admin DESC, p_pos, p_team_place DESC "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<option value="<%=rsc("p_no")%>" <% if cstr(p_team_people) = cstr(rsc("p_no")) then %> selected <% end if %>><%=rsc("p_name")%></option>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
end if
|
|
rsc.Close
|
|
%>
|
|
</select>
|
|
|
|
<%
|
|
end if
|
|
%>
|
|
|
|
<%
|
|
if tmp_admin_chk = "1" then
|
|
%>
|
|
정렬
|
|
<select name="tmp_sort" onChange="subit()">
|
|
<option value="" <% if tmp_sort = "" then %> selected <% end if %>>이름순</option>
|
|
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>>컨택순</option>
|
|
</select>
|
|
|
|
<%
|
|
end if
|
|
%>
|
|
|
|
년도
|
|
<select name="tmp_year" onChange="subit();">
|
|
<%
|
|
for i = year(date()) to 2009 step -1
|
|
%>
|
|
<option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%>년</option>
|
|
<%
|
|
next
|
|
%>
|
|
</select>
|
|
|
|
|
|
월
|
|
<select name="tmp_month" onChange="subit()">
|
|
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>>전체</option>
|
|
<%
|
|
if cstr(tmp_year) = cstr(year(date())) OR tmp_year = "" then
|
|
tmp_i = month(date())
|
|
else
|
|
tmp_i = 12
|
|
end if
|
|
|
|
for i = 1 to tmp_i
|
|
%>
|
|
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%>월</option>
|
|
<%
|
|
next
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:10 0 0 0">
|
|
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
|
|
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td align="center" >No.</td>
|
|
<td align="center" >본부</td>
|
|
<td align="center" >프로젝트코드</td>
|
|
<td align="center" >프로젝트명</td>
|
|
<td align="center" >클라이언트명</td>
|
|
<td align="center" >조사방법</td>
|
|
<td align="center" >연구원</td>
|
|
<td align="center" >DP</td>
|
|
<td align="center" >SV</td>
|
|
<td align="center" >상태(입력)</td>
|
|
<td align="center" >상태(날짜)</td>
|
|
<td align="center" >연구</td>
|
|
<td align="center" >실사</td>
|
|
<td align="center" >전산</td>
|
|
</tr>
|
|
<!-- loop start -->
|
|
<%
|
|
query = "SELECT * "
|
|
query = query & "FROM project as a "
|
|
query = query & " INNER JOIN Client as b "
|
|
query = query & " ON a.p_cli_company = b.c_code "
|
|
'조회 옵션
|
|
if p_depart <> "0" AND p_depart <> "" then
|
|
query = query & " AND p_depart_dep = '" & p_depart & "' "
|
|
else
|
|
query = query & " AND (p_depart <= '10' or (p_depart >= 20 and p_depart <= 95)) "
|
|
end if
|
|
if p_team <> "0" AND p_team <> "" then
|
|
query = query & " AND p_depart_team = '" & p_team & "' "
|
|
else
|
|
|
|
end if
|
|
if p_team_people <> "0" AND p_team_people <> "" then
|
|
query = query & " AND (p_rsch_1 = '" & p_team_people & "' "
|
|
query = query &" OR p_rsch_2 = '" & p_team_people & "' "
|
|
query = query &" OR p_rsch_3 = '" & p_team_people & "' "
|
|
query = query &" OR p_rsch_4 = '" & p_team_people & "') "
|
|
end if
|
|
'------------------------------------------------------
|
|
'년 옵션
|
|
if tmp_year <> "0" and tmp_year <> "" then
|
|
query = query & " AND SUBSTRING(p_reg_date,1,4) = '" & tmp_year & "' "
|
|
else
|
|
query = query & " AND SUBSTRING(p_reg_date,1,4) = '" & year(date()) & "' "
|
|
end if
|
|
'------------------------------------------------------
|
|
'월 옵션
|
|
if tmp_month <> "0" and tmp_month <> "" then
|
|
query = query & " AND SUBSTRING(p_reg_date,6,2) = '" & right("0" & tmp_month, 2) & "' "
|
|
end if
|
|
'------------------------------------------------------
|
|
'정렬 옵션
|
|
if tmp_sort = "1" then
|
|
query = query & "ORDER BY a.p_contact_date DESC "
|
|
else
|
|
query = query & "ORDER BY a.p_subject "
|
|
end if
|
|
'------------------------------------------------------
|
|
|
|
rsp.Open query, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
rsp.PageSize = 20
|
|
|
|
PageCount = rsp.PageCount
|
|
rsp.absolutepage = tmp_Currentpage
|
|
tmp_total_record = rsp.RecordCount
|
|
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize)
|
|
|
|
if rsp.PageSize <= tmp_for then
|
|
if rsp.RecordCount <= rsp.PageSize then
|
|
tmp_for = rsp.recordcount
|
|
else
|
|
tmp_for = rsp.PageSize
|
|
end if
|
|
else
|
|
tmp_for = tmp_for
|
|
end if
|
|
|
|
for i = 1 to tmp_for
|
|
|
|
if Cint(tmp_Currentpage)=1 then
|
|
Num=Cint(tmp_total_record)- i+1
|
|
else
|
|
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsc.PageSize) - i +1
|
|
end if
|
|
|
|
prj_list(i, 0) = rsp("p_sn")
|
|
prj_list(i, 25) = rsp("p_intention")
|
|
prj_list(i, 1) = rsp("p_subject")
|
|
for j=1 to 4
|
|
tmpstr = "p_rsch_" & j
|
|
prj_list(j, j+1) = rsp(tmpstr)
|
|
' Response.Write rsp(tmpstr) & "<Br>"
|
|
next
|
|
prj_list(i, 6) = rsp("p_dper")
|
|
prj_list(i, 7) = rsp("p_dper2")
|
|
prj_list(i, 8) = rsp("p_dper3")
|
|
prj_list(i, 9) = rsp("p_dper4")
|
|
prj_list(i, 10) = rsp("p_sv")
|
|
prj_list(i, 11) = rsp("p_coder")
|
|
prj_list(i, 12) = rsp("p_verify")
|
|
prj_list(i, 13) = rsp("p_it")
|
|
|
|
prj_list(i, 14) = formatnumber(rsp("p_budget"),0) '계약액
|
|
prj_list(0, 14) = cdbl(prj_list(0, 14)) + cdbl(rsp("p_budget"))
|
|
prj_list(i, 15) = formatnumber(rsp("p_esti_cost"), 0) '예상직접비
|
|
prj_list(0, 15) = cdbl(prj_list(0, 15)) + cdbl(rsp("p_esti_cost")) '예상직접비
|
|
if clng(prj_list(i, 14)) > 0 then
|
|
prj_list(i, 16) = formatnumber(prj_list(i, 15) / prj_list(i, 14) * 100,2) '예상직접비율 : 계약액기준
|
|
else
|
|
prj_list(i, 16) = "0"
|
|
end if
|
|
prj_list(i, 17) = formatnumber(rsp("p_real_cost"), 0) '실제직접비
|
|
prj_list(0, 17) = cdbl(prj_list(0, 17)) + cdbl(rsp("p_real_cost")) '실제직접비
|
|
if clng(prj_list(i, 14)) > 0 then
|
|
prj_list(i, 18) = formatnumber(prj_list(i, 17) / prj_list(i, 14) * 100,2) '실제직접비율 : 계약액기준
|
|
else
|
|
prj_list(i, 18) = "0"
|
|
end if
|
|
|
|
|
|
if Cint(tmp_Currentpage)=1 then
|
|
Num=Cint(tmp_total_record)- i+1
|
|
else
|
|
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize) - i +1
|
|
end if
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM Depart "
|
|
query = query & "WHERE d_code='" & rsp("p_depart_dep") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_depart = rsc("d_mname_shot")
|
|
end if
|
|
rsc.Close
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM [Client] "
|
|
query = query & "WHERE c_code='" & rsp("p_cli_company") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_cli_company = rsc("c_name")
|
|
end if
|
|
rsc.Close
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM p_method "
|
|
query = query & "WHERE code1 = '" & rsp("p_method") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_method = rsc("code1")
|
|
tmp_method_name = rsc("name1")
|
|
end if
|
|
rsc.Close
|
|
|
|
tmp_rsch_name = ""
|
|
tmp_dp_name = ""
|
|
tmp_sv_name = ""
|
|
|
|
for j = 1 to 4
|
|
query = "SELECT * "
|
|
query = query & "FROM person "
|
|
query = query & "WHERE p_no = '" & rsp("p_rsch_" & j) & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
if j > 1 then
|
|
tmp_rsch_name = tmp_rsch_name & ","
|
|
end if
|
|
tmp_rsch_name = tmp_rsch_name & rsc("p_name")
|
|
end if
|
|
rsc.Close
|
|
next
|
|
|
|
for j = 1 to 2
|
|
if j = 1 then
|
|
tmp_j = ""
|
|
else
|
|
tmp_j = j
|
|
end if
|
|
query = "SELECT * "
|
|
query = query & "FROM person "
|
|
query = query & "WHERE p_no = '" & rsp("p_dper" & tmp_j) & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
if j > 1 then
|
|
tmp_dp_name = tmp_dp_name & ","
|
|
end if
|
|
tmp_dp_name = tmp_dp_name & rsc("p_name")
|
|
end if
|
|
rsc.Close
|
|
next
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM person "
|
|
query = query & "WHERE p_no = '" & rsp("p_sv") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_sv_name = tmp_sv_name & rsc("p_name")
|
|
end if
|
|
rsc.Close
|
|
'-----------------------------------------------------------------
|
|
|
|
|
|
research_file = "0"
|
|
fieldwork_file = "0"
|
|
computer_file = "0"
|
|
research_file_txt = "N"
|
|
fieldwork_file_txt = "N"
|
|
computer_file_txt = "N"
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM file_log "
|
|
query = query & "WHERE p_sn = '" & rsp("p_sn") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
if rsc("research") = "1" then
|
|
research_file = "1"
|
|
research_file_txt = "<font color='blue'><b>Y</b></font>"
|
|
end if
|
|
if rsc("fieldwork") = "1" then
|
|
fieldwork_file = "1"
|
|
fieldwork_file_txt = "<font color='blue'><b>Y</b></font>"
|
|
end if
|
|
if rsc("computer") = "1" then
|
|
computer_file = "1"
|
|
computer_file_txt = "<font color='blue'><b>Y</b></font>"
|
|
end if
|
|
end if
|
|
rsc.Close
|
|
|
|
'------------------------------------------------------------------
|
|
'상태에 대한 처리 (tmp_stat), 각 상태의 위치 (tmp_stat_flag)
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
|
|
'1. 연구부서 미등록
|
|
'2_0. 직접비 미등록
|
|
'2. 실사부서 미등록
|
|
'3. 전산부서 미등록
|
|
'4. 계약보고서 미등록
|
|
'5. 영향도 미책정
|
|
'6. 실제기간 미입력(사용안함)
|
|
'7. 파일 없음
|
|
'8. 연구완료 대기중
|
|
|
|
'1. 연구부서 미등록
|
|
if tmp_stat = "" then
|
|
if isnull(rsp("p_rsch_1")) or rsp("p_rsch_1") = "" then
|
|
tmp_stat = "연구부서 미등록"
|
|
tmp_stat_flag = "1"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'2_0. 직접비 미등록
|
|
if tmp_stat = "" then
|
|
query = "SELECT * "
|
|
query = query & "FROM Document a "
|
|
query = query & " INNER JOIN 문서내용 b on a.d_no = b.문서번호 "
|
|
query = query & "WHERE a.d_delok = 'N' "
|
|
query = query & " AND a.d_name = '직접비' "
|
|
query = query & " AND b.p_sn = '" & rsp("p_sn") & "' "
|
|
|
|
query = "select * from direct_cost where p_sn = '" & rsp("p_sn") & "' " & _
|
|
" and del_yes_no = 'no' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
else
|
|
tmp_stat = "직접비 미등록"
|
|
tmp_stat_flag = "2_0"
|
|
end if
|
|
rsc.Close
|
|
end if
|
|
|
|
'2. 실사부서 미등록
|
|
if tmp_stat = "" then
|
|
if isnull(rsp("p_sv")) or rsp("p_sv") = "" then
|
|
tmp_stat = "실사부서 미등록"
|
|
tmp_stat_flag = "2"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'3. 전산부서 미등록
|
|
if tmp_stat = "" then
|
|
if isnull(rsp("p_dper")) or rsp("p_dper") = "" then
|
|
tmp_stat = "전산부서 미등록"
|
|
tmp_stat_flag = "3"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'4. 계약보고서 미등록
|
|
if tmp_stat = "" then
|
|
query = "SELECT * "
|
|
query = query & "FROM Document a "
|
|
query = query & " INNER JOIN 문서내용 b on a.d_no = b.문서번호 "
|
|
query = query & "WHERE a.d_delok = 'N' "
|
|
query = query & " AND a.d_name = '프로젝트수행계획서' "
|
|
query = query & " AND b.p_sn = '" & rsp("p_sn") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
else
|
|
tmp_stat = "계약보고서 미등록"
|
|
tmp_stat_flag = "4"
|
|
end if
|
|
rsc.Close
|
|
end if
|
|
|
|
'5. 영향도 미책정
|
|
if tmp_stat = "" then
|
|
if rsp("p_rsch_1p") = "" AND isnull(rsp("p_rsch_1p")) then
|
|
tmp_stat = "영향도 미책정"
|
|
tmp_stat_flag = "5"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'6. 실제기간 미입력
|
|
if tmp_stat = "" then
|
|
if rsp("p_convdate_st") <> "" AND NOT isnull(rsp("p_convdate_st")) then
|
|
if rsp("p_convdate_st2") = "" AND isnull(rsp("p_convdate_st2")) then
|
|
tmp_stat = "실제기간 미입력(연구)"
|
|
tmp_stat_flag = "6"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'6. 실제기간 미입력
|
|
if tmp_stat = "" then
|
|
if rsp("p_field_st") <> "" AND NOT isnull(rsp("p_field_st")) then
|
|
if rsp("p_field_st2") = "" AND isnull(rsp("p_field_st2")) then
|
|
tmp_stat = "실제기간 미입력(실사)"
|
|
tmp_stat_flag = "6"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
end if
|
|
|
|
'6. 실제기간 미입력(사용안함)
|
|
if tmp_stat = "" then
|
|
if rsp("p_dp_st") <> "" AND NOT isnull(rsp("p_dp_st")) then
|
|
if rsp("p_dp_st2") = "" AND isnull(rsp("p_dp_st2")) then
|
|
tmp_stat = "실제기간 미입력(전산)"
|
|
tmp_stat_flag = "6"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = ""
|
|
end if
|
|
tmp_stat = ""
|
|
end if
|
|
|
|
'7. 파일 없음
|
|
if tmp_stat = "" then
|
|
tmp_chk = ""
|
|
if research_file = "0" then
|
|
tmp_chk = "연구"
|
|
end if
|
|
if fieldwork_file = "0" then
|
|
if tmp_chk <> "" then
|
|
tmp_chk = tmp_chk & ","
|
|
end if
|
|
tmp_chk = tmp_chk & "실사"
|
|
end if
|
|
if computer_file = "0" then
|
|
if tmp_chk <> "" then
|
|
tmp_chk = tmp_chk & ","
|
|
end if
|
|
tmp_chk = tmp_chk & "전산"
|
|
end if
|
|
|
|
if tmp_chk <> "" then
|
|
tmp_stat = "<font color='red'><b>파일 없음(" & tmp_chk & ")</b></font>"
|
|
tmp_stat_flag = "7"
|
|
end if
|
|
end if
|
|
|
|
'8. 연구완료 대기중
|
|
if tmp_stat = "" then
|
|
tmp_stat = "연구완료 대기중"
|
|
tmp_stat_flag = "8"
|
|
end if
|
|
|
|
|
|
tmp_stat_process = tmp_stat
|
|
tmp_stat_flag_process = tmp_stat_flag
|
|
'------------------------------------------------------------------
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
|
|
'1. 계약기간 만료
|
|
'2. 보고서 작성일
|
|
'3. D/P 작업일
|
|
'4. 펀치일
|
|
'5. 실사진행일
|
|
'6. 면접원 OT일
|
|
'7. 내부미팅일
|
|
'8. 대기중
|
|
|
|
'1. 계약기간 만료
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_convdate_st2") <> "" AND NOT isnull(rsp("p_convdate_st2")) then
|
|
if cdate(rsp("p_convdate_end2")) < date() then
|
|
tmp_stat = "계약기간 만료"
|
|
tmp_stat_flag = "1"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'2. 보고서 작성일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_report_st2") <> "" AND NOT isnull(rsp("p_report_st2")) then
|
|
if cdate(rsp("p_report_st2")) <= date() AND cdate(rsp("p_report_end2")) >= date() then
|
|
tmp_stat = "보고서 작성일"
|
|
tmp_stat_flag = "2"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'3. D/P 작업일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_dp_st2") <> "" AND NOT isnull(rsp("p_dp_st2")) then
|
|
if cdate(rsp("p_dp_st2")) <= date() AND cdate(rsp("p_dp_end2")) >= date() then
|
|
tmp_stat = "D/P 작업일"
|
|
tmp_stat_flag = "3"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'4. 펀치일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_punch_st2") <> "" AND NOT isnull(rsp("p_punch_st2")) then
|
|
if cdate(rsp("p_punch_st2")) <= date() AND cdate(rsp("p_punch_end2")) >= date() then
|
|
tmp_stat = "펀치일"
|
|
tmp_stat_flag = "4"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'5. 실사진행일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_field_st2") <> "" AND NOT isnull(rsp("p_field_st2")) then
|
|
if cdate(rsp("p_field_st2")) <= date() AND cdate(rsp("p_field_end2")) >= date() then
|
|
tmp_stat = "실사진행일"
|
|
tmp_stat_flag = "5"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'6. 면접원 OT일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_ot_date2") <> "" AND NOT isnull(rsp("p_ot_date2")) then
|
|
if cdate(rsp("p_ot_date2")) = date() then
|
|
tmp_stat = "면접원 OT일"
|
|
tmp_stat_flag = "6"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'7. 내부미팅일
|
|
if tmp_stat = "" then
|
|
|
|
if rsp("p_premeet_date2") <> "" AND NOT isnull(rsp("p_premeet_date2")) then
|
|
if cdate(rsp("p_premeet_date2")) = date() then
|
|
tmp_stat = "내부미팅일"
|
|
tmp_stat_flag = "7"
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
else
|
|
tmp_stat = ""
|
|
tmp_stat_flag = "0"
|
|
end if
|
|
|
|
end if
|
|
|
|
'8. 대기중
|
|
if tmp_stat = "" then
|
|
|
|
tmp_stat = "대기중"
|
|
tmp_stat_flag = "8"
|
|
|
|
end if
|
|
|
|
tmp_stat_date = tmp_stat
|
|
tmp_stat_flag_date = tmp_stat_flag
|
|
'------------------------------------------------------------------
|
|
tmp_view = "0"
|
|
if flag <> "" then '#### my_menu에서 비교값을 보내어 오면 그 비교값에 맞춰서 리스트를 출력
|
|
if tmp_stat_flag_process = flag OR tmp_stat_flag_date = flag then '#### 비교값이 없다면 전체를 출력
|
|
tmp_view = "1"
|
|
else
|
|
tmp_veiw = "0"
|
|
end if
|
|
else
|
|
tmp_view = "1"
|
|
end if
|
|
|
|
if tmp_view = "1" then
|
|
|
|
if i mod 2 = 0 then
|
|
tmp_bgcolor="#dbe9f2"
|
|
else
|
|
tmp_bgcolor=""
|
|
end if
|
|
%>
|
|
<tr bgcolor="<%=tmp_bgcolor%>" id='row<%=i%>' onmouseover="MultiRowSelection('row<%=i%>',0,'on');popLayer('조사내용 : <%=rsp("p_intention")%>');" onmouseout="MultiRowSelection('row<%=i%>',0,'off','<%=tmp_bgcolor%>');hideLayer();">
|
|
<td align="center" ><%=Num%></td>
|
|
<td align="center"><%=tmp_depart%></td>
|
|
<td align="center" ><%=rsp("p_sn")%></td>
|
|
<td align="center"><a href="javascript:openit('1','<%=rsp("p_sn")%>')" class="blue"><%=rsp("p_subject")%></a></td>
|
|
<td align="center"><%=tmp_cli_company%></td>
|
|
<td align="center" ><%=tmp_method_name%></td>
|
|
<td align="center"><%=tmp_rsch_name%></td>
|
|
<td align="center"><%=tmp_dp_name%></td>
|
|
<td align="center"><%=tmp_sv_name%></td>
|
|
<td align="center" ><%=tmp_stat_process%></td>
|
|
<td align="center" ><%=tmp_stat_date%></td>
|
|
<td align="center" ><%=research_file_txt%></td>
|
|
<td align="center" ><%=fieldwork_file_txt%></td>
|
|
<td align="center" ><%=computer_file_txt%></td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close
|
|
%>
|
|
<!-- loop end -->
|
|
|
|
<tr>
|
|
<td colspan="12" bgcolor="#d5d5d5" height="1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="12" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td width="100%" align="center">
|
|
<!--- Paging Start --->
|
|
<%=Pagelist("project_list2_withdate.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x & "&chk=" & chk & "&p_depart=" & p_depart & "&p_team=" & p_team & "&flag=" & flag & "&tmp_sort=" & tmp_sort & "&tmp_month=" & tmp_month & "&tmp_year=" & tmp_year & "&p_team_people=" & p_team_people)%>
|
|
<!--- Paging End --->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
|
|
</form>
|