620 lines
25 KiB
Plaintext
620 lines
25 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
dim prj_list(20 , 25)
|
|
|
|
x = request("x")
|
|
z = request("z") '1은 수행계획, 2는 프로젝트 진행, 3은 프로젝트 마감
|
|
p_depart = request("p_depart")
|
|
p_team = request("p_team")
|
|
flag = request("flag") 'my_menu.asp에서 보내오는 값 (tmp_stat_flag와 비교)
|
|
If request("tmp_sort") <> "" Then
|
|
tmp_sort = request("tmp_sort")
|
|
Else
|
|
tmp_sort = "0"
|
|
End if
|
|
|
|
tmp_month = request("tmp_month")
|
|
tmp_year = request("tmp_year")
|
|
p_team_people = request("p_team_people")
|
|
p_subject = request("p_subject")
|
|
p_method_nm = request("p_method_nm")
|
|
p_method_cd = request("p_method_cd")
|
|
|
|
chk = request("chk") '부서가 변경되면 팀을 전체로 초기화 함
|
|
|
|
if request("gotopage") <> "" then
|
|
tmp_currentpage = request("gotopage")
|
|
else
|
|
tmp_currentpage = 1
|
|
end if
|
|
|
|
If p_depart = "" Then
|
|
p_depart = Session("Depart_Code")
|
|
End if
|
|
if p_depart = "all" then
|
|
p_depart = ""
|
|
end if
|
|
|
|
'-- 운영부서 진행 프로젝트 보기("ok")(20170720 추가)
|
|
org_mgr_team = request("org_mgr_team")
|
|
if org_mgr_team="ok" then p_depart = ""
|
|
|
|
'page config
|
|
tmp_colspan = 9
|
|
|
|
if tmp_year = "" then
|
|
tmp_year = cstr(year(date()))
|
|
end if
|
|
|
|
if tmp_month = "" then
|
|
tmp_month = cstr(month(date()))
|
|
end if
|
|
%>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<div class="content-header">
|
|
<h1>프로젝트 진행 관리</h1>
|
|
</div>
|
|
<!-- /.content-header -->
|
|
<!-- Main content -->
|
|
<div class="content-body">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<form name="pms" method="post">
|
|
<input type="hidden" name="z" style="width:150;" value="<%=z%>">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td>검색 조건을 선택하세요.</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;">
|
|
<%if p_depart <> "" then %>
|
|
<!-- 부서 -->
|
|
부서
|
|
<%
|
|
query = ""
|
|
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
|
|
query = query & " FROM project2.dbo.v_Department "
|
|
query = query & " WHERE (before_t_cd1 in (12, 17, 18, 90) or before_t_cd1 between 20 and 99) "
|
|
query = query & " order by LEFT(T_Name, 8)"
|
|
adors.Open query, adoconn,adOpenStatic,adLockReadOnly
|
|
%>
|
|
<select name=p_depart>
|
|
<option value="0"<% if cint(p_depart) = 0 then %> selected <% end if %>>전체</option>
|
|
<%for i=1 to adors.recordcount %>
|
|
<option value="<%=adors("d_code")%>"<% if cint(p_depart) = cint(adors("d_code")) then %> selected <% end if %>><%=adors("d_name")%></option>
|
|
<%
|
|
adors.movenext
|
|
next%>
|
|
</select>
|
|
<% adors.close %>
|
|
<%end if%>
|
|
정렬
|
|
<select name="tmp_sort">
|
|
<option value="" <% if tmp_sort = "0" then %> selected <% end if %>>프로젝트명</option>
|
|
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>>프로젝트코드</option>
|
|
<option value="2" <% if tmp_sort = "2" then %> selected <% end if %>>담당부서</option>
|
|
<option value="3" <% if tmp_sort = "3" then %> selected <% end if %>>등록일시</option>
|
|
</select>
|
|
|
|
년도
|
|
<select name="tmp_year" >
|
|
<%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" >
|
|
<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>
|
|
프로젝트 명 :
|
|
<input type="text" style="width:200" name="p_subject" maxlength=20 style='ime-mode:inactive;' value='<%=p_subject%>'>
|
|
<!-- 조사 방법 : -->
|
|
<select name="p_method_cd" style="display:none; ">
|
|
<option value="" <% if p_method_cd = "" then %> selected <% end if %>>전체</option>
|
|
<option value="0" <% if p_method_cd = "0" then %> selected <% end if %>>Multi</option>
|
|
<%
|
|
query = " SELECT * "
|
|
query = query & " FROM T_PROJECT_METHOD_CD "
|
|
Rs.Open query, adoConn, 1
|
|
for i=1 to Rs.recordcount
|
|
%>
|
|
<option value="<%=Rs("p_method_cd")%>" <% if trim(Rs("p_method_cd")) = p_method_cd then %> selected <% end if %>><%=Rs("p_method_nm")%></option>
|
|
<%
|
|
Rs.MoveNext
|
|
next
|
|
Rs.close
|
|
%>
|
|
|
|
</select>
|
|
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="subit()" style='cursor:pointer' >
|
|
<input type="checkbox" class="none" name="org_mgr_team" value="ok" onclick="subit()" <%if org_mgr_team="ok" then %> checked <%end if%>>운영부서 등록 프로젝트 보기</input>
|
|
</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" style="width: 4%">No.</td>
|
|
<td align="center" style="width: 10%">프로젝트코드</td>
|
|
<td align="center" style="width: 24%">프로젝트명</td>
|
|
<td align="center" style="width: 15%">조사방법</td>
|
|
<td align="center" style="width: 15%">조사내용</td>
|
|
<td align="center" style="width: 11%">담당부서</td>
|
|
<td align="center" style="width: 8%">진행상태</td>
|
|
<td align="center" style="width: 5%">직접비</td>
|
|
<td align="center" class="tit_left tit_right" style="width: 8%">등록일자</td>
|
|
</tr>
|
|
<!-- loop start -->
|
|
<%
|
|
query = "SELECT * "
|
|
query = query & "FROM ( " & vbCrLf
|
|
query = query & " SELECT TPB.p_sn " & vbCrLf
|
|
query = query & " ,TPB.p_cli_company "
|
|
query = query & " ,TPB.p_cli_type "
|
|
query = query & " ,TPM.p_subject "
|
|
query = query & " ,TPM.p_intention "
|
|
query = query & " ,TPB.p_cp_code "
|
|
query = query & " ,TPB.p_memo "
|
|
query = query & " ,TPM.p_cont_cost "
|
|
query = query & " ,TPM.p_decide_date "
|
|
query = query & " ,TPM.p_con_date_st "
|
|
query = query & " ,TPM.p_con_date_end "
|
|
query = query & " ,TPM.p_export_range "
|
|
query = query & " ,TPM.p_category "
|
|
query = query & " ,TPB.p_state "
|
|
query = query & " ,TPB.p_input_user "
|
|
query = query & " ,TPB.p_depart "
|
|
query = query & " ,TPB.p_depart_dep "
|
|
query = query & " ,TPB.p_depart_team "
|
|
query = query & " ,TPM.p_method_cd "
|
|
query = query & " ,TPM.p_index "
|
|
query = query & " ,TPM.p_sub_type "
|
|
query = query & " ,TPM.p_child_sn "
|
|
query = query & " ,TPM.p_sur_area "
|
|
query = query & " ,TPM.p_sur_target "
|
|
query = query & " ,TPM.p_sample "
|
|
query = query & " ,TPM.p_research_date_st "
|
|
query = query & " ,TPM.p_research_date_end "
|
|
query = query & " ,TPM.p_sur_part "
|
|
query = query & " ,TPM.p_field_process "
|
|
query = query & " ,TPM.p_rsch_dept "
|
|
query = query & " ,TPM.p_field_dept "
|
|
query = query & " ,TPM.p_is_dept "
|
|
query = query & " ,TPM.p_supp_dept "
|
|
query = query & " ,TPM.p_rsch_1_a "
|
|
query = query & " ,TPM.p_rsch_2_a "
|
|
query = query & " ,TPM.p_rsch_3_a "
|
|
query = query & " ,TPM.p_rsch_4_a "
|
|
query = query & " ,TPM.p_rsch_1_b "
|
|
query = query & " ,TPM.p_rsch_2_b "
|
|
query = query & " ,TPM.p_rsch_3_b "
|
|
query = query & " ,TPM.p_rsch_4_b "
|
|
query = query & " ,TPM.p_rsch_1_c "
|
|
query = query & " ,TPM.p_rsch_2_c "
|
|
query = query & " ,TPM.p_rsch_3_c "
|
|
query = query & " ,TPM.p_rsch_4_c "
|
|
query = query & " ,TPM.p_sv_1 "
|
|
query = query & " ,TPM.p_sv_2 "
|
|
query = query & " ,TPM.p_sv_3 "
|
|
query = query & " ,TPM.p_sv_4 "
|
|
query = query & " ,TPM.p_code_1 "
|
|
query = query & " ,TPM.p_code_2 "
|
|
query = query & " ,TPM.p_code_3 "
|
|
query = query & " ,TPM.p_code_4 "
|
|
query = query & " ,TPM.p_verify_1 "
|
|
query = query & " ,TPM.p_verify_2 "
|
|
query = query & " ,TPM.p_verify_3 "
|
|
query = query & " ,TPM.p_verify_4 "
|
|
query = query & " ,TPM.p_dp_1 "
|
|
query = query & " ,TPM.p_dp_2 "
|
|
query = query & " ,TPM.p_dp_3 "
|
|
query = query & " ,TPM.p_dp_4 "
|
|
query = query & " ,TPM.p_it_1 "
|
|
query = query & " ,TPM.p_it_2 "
|
|
query = query & " ,TPM.p_it_3 "
|
|
query = query & " ,TPM.p_it_4 "
|
|
query = query & " ,TPM.p_supp_1 "
|
|
query = query & " ,TPM.p_supp_2 "
|
|
query = query & " ,TPM.p_supp_3 "
|
|
query = query & " ,TPM.p_supp_4 "
|
|
query = query & " ,TPM.p_rsch_date_st "
|
|
query = query & " ,TPM.p_rsch_date_end "
|
|
query = query & " ,TPM.p_field_date_st "
|
|
query = query & " ,TPM.p_field_date_end "
|
|
query = query & " ,TPM.p_code_date_st "
|
|
query = query & " ,TPM.p_code_date_end "
|
|
query = query & " ,TPM.p_verify_date_st "
|
|
query = query & " ,TPM.p_verify_date_end "
|
|
query = query & " ,TPM.p_dp_date_st "
|
|
query = query & " ,TPM.p_dp_date_end "
|
|
query = query & " ,TPM.p_it_date_st "
|
|
query = query & " ,TPM.p_it_date_end "
|
|
query = query & " ,TPM.p_premeet_date "
|
|
query = query & " ,TPM.p_premeet_time "
|
|
query = query & " ,TPM.p_premeet_place "
|
|
query = query & " ,TPM.p_ot_date "
|
|
query = query & " ,TPM.p_ot_time "
|
|
query = query & " ,TPM.p_ot_place "
|
|
query = query & " ,TPM.p_sur_memo "
|
|
query = query & " ,TPM.p_progress_status "
|
|
query = query & " ,TPM.p_input_dt " & vbCrLf
|
|
query = query & " FROM V_PROJECT as TPB " & vbCrLf
|
|
query = query & " INNER JOIN V_PROJECT_METHOD as TPM " & vbCrLf
|
|
query = query & " ON TPB.p_sn = TPM.p_sn " & vbCrLf
|
|
query = query & " AND TPM.p_progress_status is not null " & vbCrLf
|
|
query = query & " AND TPM.p_sub_type = 'C' " & vbCrLf
|
|
if p_depart="" and org_mgr_team="ok" then
|
|
query = query & " WHERE p_depart_dep in ( " & vbCrLf
|
|
query = query & " select team_cd from [dbo].[TEAM_GROUP] where group1='2' " & vbCrLf '-- group1 (운영부서:2)
|
|
query = query & " ) " & vbCrLf
|
|
else
|
|
if p_depart <> "0" AND p_depart <> "" then
|
|
If p_depart = 17 Or p_depart = 18 then
|
|
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=99) or (p_depart_dep >= 17 and p_depart_dep <=18)) " & vbCrLf
|
|
elseif p_depart = 13 then
|
|
query = query & " WHERE p_depart_dep = 12 " & vbCrLf
|
|
Else
|
|
query = query & " WHERE ( /* p_depart_dep = " & p_depart & " or */ " & vbCrLf
|
|
query = query & " p_rsch_dept = " & p_depart & " or " & vbCrLf
|
|
query = query & " p_field_dept = " & p_depart & " or " & vbCrLf
|
|
query = query & " p_is_dept = " & p_depart & " or " & vbCrLf
|
|
query = query & " p_supp_dept = " & p_depart & " " & vbCrLf
|
|
query = query & " ) " & vbCrLf
|
|
End if
|
|
else
|
|
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=99)) " & vbCrLf
|
|
end If
|
|
end if
|
|
query = query & " ) as T " & vbCrLf
|
|
'z옵션
|
|
if z = 1 then
|
|
query = query & " WHERE p_progress_status <= '007' " & vbCrLf
|
|
elseif z = 2 Then
|
|
query = query & " WHERE p_progress_status > '007' and p_progress_status <> '999' " & vbCrLf
|
|
else
|
|
query = query & " WHERE p_progress_status < '014' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'년 옵션
|
|
if tmp_year <> "0" and tmp_year <> "" then
|
|
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & tmp_year & "' " & vbCrLf
|
|
else
|
|
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & year(date()) & "' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'월 옵션
|
|
if tmp_month <> "0" and tmp_month <> "" then
|
|
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 5, 2) = '" & right("0" & tmp_month, 2) & "' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'프로젝트 명 검색 옵션
|
|
if p_subject <> "" then
|
|
query = query & " AND p_subject LIKE '%"&p_subject&"%' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'프로젝트 명 검색 옵션
|
|
if p_method_cd <> "" then
|
|
query = query & " AND p_method_cd = '"&p_method_cd&"' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'운영부서 진행 프로젝트 보기
|
|
if org_mgr_team="ok" then
|
|
query = query & " AND p_rsch_dept='900' " & vbCrLf
|
|
end if
|
|
'------------------------------------------------------
|
|
'정렬 옵션
|
|
if tmp_sort = "0" Then
|
|
query = query & "ORDER BY p_subject " & vbCrLf
|
|
ElseIf tmp_sort = "1" Then
|
|
query = query & "ORDER BY p_sn DESC " & vbCrLf
|
|
ElseIf tmp_sort = "2" Then
|
|
query = query & "ORDER BY p_depart_dep " & vbCrLf
|
|
else
|
|
query = query & "ORDER BY p_input_dt " & vbCrLf
|
|
end If
|
|
'------------------------------------------------------
|
|
'response.write query
|
|
Rs.Open query, adoConn, 1
|
|
if Rs.RecordCount > 0 then
|
|
|
|
Rs.PageSize = 20
|
|
|
|
PageCount = Rs.PageCount
|
|
Rs.absolutepage = tmp_Currentpage
|
|
tmp_total_record = Rs.RecordCount
|
|
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
|
|
|
|
if Rs.PageSize <= tmp_for then
|
|
if Rs.RecordCount <= Rs.PageSize then
|
|
tmp_for = Rs.recordcount
|
|
else
|
|
tmp_for = Rs.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) * Rs.PageSize) - i +1
|
|
end if
|
|
|
|
prj_list(i, 0) = Rs("p_sn")
|
|
prj_list(i, 1) = Rs("p_subject")
|
|
|
|
if Cint(tmp_Currentpage)=1 then
|
|
Num=Cint(tmp_total_record)- i+1
|
|
else
|
|
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
|
|
end if
|
|
|
|
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%>'>
|
|
<td align="center" ><%=Num%></td>
|
|
<td align="center" ><a href="javascript:openit('1','<%=Rs("p_sn")%>','<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>','<%=Rs("p_child_sn")%>')" class="blue">
|
|
<!-- <%=Rs("p_state")%><%=Rs("p_sn")%> -->
|
|
<%
|
|
If Rs("p_sub_type") = "M" Then
|
|
%>
|
|
<%=Rs("p_sn")%>_M01
|
|
<% Else
|
|
If Rs("p_child_sn") = "" Then
|
|
%>
|
|
<%=Rs("p_sn")%>_C01
|
|
<% Else %>
|
|
<%=Rs("p_child_sn")%>
|
|
<% End If
|
|
End If
|
|
%>
|
|
</a></td>
|
|
<td align="left" ><a href="javascript:openit('1','<%=Rs("p_sn")%>','<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>','<%=Rs("p_child_sn")%>')" class="blue"> <%=Rs("p_subject")%></a></td>
|
|
<td align="center" >
|
|
<%
|
|
If Rs("p_sub_type") = "M" Then
|
|
%>
|
|
Multi
|
|
<%
|
|
Else
|
|
If Rs("p_method_cd") <> "" then
|
|
q = "select p_method_cd, p_method_nm from T_PROJECT_METHOD_CD where p_method_cd = " & Rs("p_method_cd")
|
|
adors.Open q, adoConn, 1
|
|
if adors.RecordCount > 0 Then
|
|
%>
|
|
<%=adors("p_method_nm")%>
|
|
<%
|
|
end if
|
|
adors.Close
|
|
Else
|
|
%>
|
|
|
|
<%
|
|
End if
|
|
End if
|
|
%>
|
|
</td>
|
|
<td align="left" > <%=Rs("p_intention")%></td>
|
|
<td align="center" ><!-- 값확인용 [<%= Rs("p_depart_dep")%>] -->
|
|
<%
|
|
'##### 조직 개편(2019)
|
|
q = "Select T_name from V_department where before_t_cd1 = '"& Rs("p_rsch_dept") &"' "
|
|
adors.Open q, adoConn, 1
|
|
|
|
Dim owner_depart_name
|
|
Dim owner_emp_name_1 '연구원
|
|
Dim owner_emp_name_2 'SV
|
|
|
|
if adors.RecordCount > 0 Then
|
|
If (Instr(adors("T_name"),"컨설팅") <> 0) or (Instr(adors("T_name"),"연구") <> 0) Then
|
|
owner_depart_name = Right(adors("T_name"),2)
|
|
Else
|
|
owner_depart_name = adors("T_name")
|
|
End If
|
|
Else
|
|
owner_depart_name = "배정안됨"
|
|
end if
|
|
|
|
adors.Close
|
|
|
|
q = "select p_no, p_name from person where p_no = '" & Rs("p_input_user") & "' "
|
|
adors.Open q, adoConn, 1
|
|
|
|
if adors.RecordCount > 0 Then
|
|
owner_emp_name_1 = adors("p_name")
|
|
end if
|
|
adors.Close
|
|
|
|
q = "select p_no, p_name from person where p_no = '" & Rs("p_sv_1") & "' "
|
|
adors.Open q, adoConn, 1
|
|
|
|
if adors.RecordCount > 0 Then
|
|
owner_emp_name_2 = adors("p_name")
|
|
Else
|
|
owner_emp_name_2 = "배정안됨"
|
|
end if
|
|
adors.Close
|
|
%>
|
|
<%=owner_depart_name%><br>(<%=owner_emp_name_1%>/<%=owner_emp_name_2%>)
|
|
</td>
|
|
<td align="center" >
|
|
<%
|
|
q = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '010' and c_common_code = '" & Rs("p_progress_status") & "' "
|
|
adors.Open q, adoConn, 1
|
|
|
|
Dim project_complete
|
|
|
|
project_complete = false
|
|
if adors.RecordCount > 0 Then
|
|
If CInt(adors("c_common_code")) < 8 Then
|
|
%><font style="color: orange; font-weight: bold;">진행중</font><%
|
|
Else
|
|
yyyy = year(cdate(now))
|
|
mm = TransFormat(month(cdate(now)))
|
|
dd = TransFormat(day(cdate(now)))
|
|
temp_today = yyyy & "-" & mm & "-" & dd
|
|
|
|
If Trim(Rs("p_field_date_end")) = "" or isnull(Rs("p_field_date_end")) = true Then
|
|
If Trim(Rs("p_sub_type")) = "M" Then
|
|
Else
|
|
%><font style="color: orange; font-weight: bold;">진행중</font> <%
|
|
End if
|
|
elseIf CLng(Replace(temp_today, "-", "")) < CLng(Replace(left(Rs("p_field_date_end"), 10), "-", ""))Then
|
|
%><font style="color: orange; font-weight: bold;">진행중</font> <%
|
|
Else
|
|
project_complete = true
|
|
%><font style="color: blue; font-weight: bold;">조사완료</font> <%
|
|
End if
|
|
End if
|
|
end if
|
|
adors.Close
|
|
%>
|
|
</td>
|
|
<td align="center" >
|
|
<%
|
|
'If project_complete Then
|
|
Dim temp_p_sn
|
|
If Rs("p_sub_type") = "M" Then
|
|
temp_p_sn = Rs("p_sn")&"_M01"
|
|
Else
|
|
If Rs("p_child_sn") = "" Then
|
|
temp_p_sn = Rs("p_sn")&"_C01"
|
|
Else
|
|
temp_p_sn = Rs("p_child_sn")
|
|
End If
|
|
End If
|
|
%>
|
|
<a href="javascript:link_direct_cost('<%=temp_p_sn%>', '<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>');">관리</a>
|
|
<%
|
|
'End If
|
|
%>
|
|
</td>
|
|
<td align="center" ><%=Left(Rs("p_input_dt"), 10)%></td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
Rs.MoveNext
|
|
next
|
|
end if
|
|
Rs.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_support_2014.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 & "&z=" & z)%>
|
|
<!--- Paging End --->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
function openit(a, z, x, y, v) {
|
|
if (a == 1) {
|
|
if (new_project_2014(z) == 1) {
|
|
var url = 'project_list2_dep.asp?p_sn=' + z;
|
|
} else {
|
|
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
|
|
}
|
|
var tmp_width = 1400;
|
|
var tmp_height = 800;
|
|
|
|
if (v != "") {
|
|
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
|
} else {
|
|
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
|
|
}
|
|
}
|
|
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
function subit() {
|
|
document.pms.action = "project_list2_support_2014.asp?z=<%=z %>";
|
|
document.pms.submit();
|
|
}
|
|
|
|
function link_direct_cost(a, b, c) {
|
|
var p_sn = "1407030_C01";
|
|
var p_sub_type = "C";
|
|
var p_year = "2014";
|
|
|
|
url = "/ess/direct_cost_print_2014.asp?p_sn=" + a + "@" + b;
|
|
url = url + "&p_method_cd=" + c;
|
|
url = url + "&tmp_year=" + p_year;
|
|
url = url + "&tmp_month=" + 0;
|
|
url = url + "&p_depart=" + 0;
|
|
url = url + "&sc_name=" + "";
|
|
url = url + "&sc_method=" + 100;
|
|
url = url + "&view_chk=2";
|
|
url = url + "&cost_type=" + "all";
|
|
window.open(url, "", "width=1000, height=900");
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |