프로젝트 개요
|
<%
q = " SELECT case when d_order_cnt = '2' then '팀장' "
q = q & " when d_order_cnt = '3' then '부서장' "
q = q & " when d_order_cnt = '4' then '임원' "
q = q & " when d_order_cnt = '5' then '대표이사' end as order_name, d_order1, d_order2, d_order3, d_order4, d_order5, "
q = q & " case when dbo.split(cast(target100 as varchar(100)), '^^', 1) = '/' then '미결재' else dbo.split(cast(target100 as varchar(100)), '^^', 1) end as d_order1_date, "
q = q & " case when dbo.split(cast(target100 as varchar(100)), '^^', 2) = '/' then '미결재' else dbo.split(cast(target100 as varchar(100)), '^^', 2) end as d_order2_date, "
q = q & " case when dbo.split(cast(target100 as varchar(100)), '^^', 3) = '/' then '미결재' else dbo.split(cast(target100 as varchar(100)), '^^', 3) end as d_order3_date, "
q = q & " case when dbo.split(cast(target100 as varchar(100)), '^^', 4) = '/' then '미결재' else dbo.split(cast(target100 as varchar(100)), '^^', 4) end as d_order4_date, "
q = q & " case when dbo.split(cast(target100 as varchar(100)), '^^', 5) = '/' then '미결재' else dbo.split(cast(target100 as varchar(100)), '^^', 5) end as d_order5_date "
q = q & " FROM 문서내용 m left outer join Document d ON m.문서번호 = d.D_no "
q = q & " WHERE m.p_child_sn = '" & Request("p_child_sn") & "' and d_order_cnt not in ('99', '77') and m.del_yes_no = 'no' "
Rs.Open q, adoConn, 1
order_name = ""
if Rs.recordCount > 0 then
order_name = Rs("order_name")
%>
| 상신자 |
그룹장 |
파트너 |
대표이사 |
| <%if Rs("d_order1") = "전결" then %>전결<%else %><%=Rs("d_order1_date")%><%end if %> |
<%if Rs("d_order3") = "전결" then %>전결<%else %><%=Rs("d_order3_date")%><%end if %> |
<%if Rs("d_order4") = "전결" then %>전결<%else %><%=Rs("d_order4_date")%><%end if %> |
<%if Rs("d_order5") = "전결" then %>전결<%else %><%=Rs("d_order5_date")%><%end if %> |
| <%=order_name %> 결재 단계 |
<%
end if
Rs.close
%>
|
| 프로젝트 번호 |
<% If p_sub_type = "C" Then %>
">
<% Else %>
">
<% End If %>
<% If p_sub_type = "C" Then %>
">
<% End If %>
"/>
"/>
|
프로젝트 명 |
" <% If session("depart_code") <> p_depart_dep Then %>readonly<% End if %>>
|
| 클라이언트 |
| 회사 |
|
업종 |
|
| 부서 |
|
계약 기간 |
~
|
| 담당자 이름 |
|
계약 일자 |
|
| 회사번호 |
|
단위 계약액 |
<%
'2016-07-20 전체계약금액은 T_PROJECT_BASE의 p_total_cost로 사용하기로 함 ====================
q = " select SUM(p_cont_cost) as all_project_cont_cost "
q = q +" from ( "
q = q +" select p_sn, p_sub_type, SUM(p_cont_cost) as p_cont_cost from t_project_method where p_sn = '" & p_sn & "' "
If temp_p_child_sn = "" Then
q = q +" and p_child_sn <> '" & Request("p_child_sn") & "' "
Else
q = q +" and p_child_sn <> '" & temp_p_child_sn & "' "
End if
q = q +" and p_sub_type = 'C' group by p_sn, p_sub_type "
q = q +" ) as t "
Rs.Open q, adoConn, 1
Dim all_project_cont_cost
all_project_cont_cost = 0
If Rs.RecordCount > 0 then
all_project_cont_cost = Rs("all_project_cont_cost")
End If
Rs.close
'=================================================================================================
%>
<%
all_project_total_cost = ""
q = " select p_total_cost "
q = q +"from T_PROJECT_base where p_sn = '" & p_sn & "' "
Rs.Open q, adoConn, 1
If Rs.RecordCount > 0 then
if Rs("p_total_cost") <> "" then
tmp_len = len(Rs("p_total_cost"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
all_project_total_cost = "," & all_project_total_cost
end if
all_project_total_cost = left(right(Rs("p_total_cost"),i), 1) & all_project_total_cost
next
Else
all_project_total_cost = 0
end If
End If
Rs.close
%>
원 (VAT별도)
[전체 수주금액 : <%=all_project_total_cost%>원]
|
| 담당자 휴대폰 |
|
전체직접비 예산(비율) |
<%
q = " select sum(T.total_money) as total_money "
q = q + " from( "
q = q + " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'research' and del_yes_no = 'no' " '##### 연구
q = q + query_p_child_sn
q = q + " union all "
q = q + " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'field' and del_yes_no = 'no' " '##### 실사
q = q + query_p_child_sn
q = q + " ) as T "
Rs.Open q, adoConn, 1
tmp_total_money = ""
tmp_total_rate = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
tmp_total_money = "," & tmp_total_money
end if
tmp_total_money = left(right(Rs("total_money"),i), 1) & tmp_total_money
Next
If p_cont_cost = 0 Then
tmp_total_rate = "0.00"
Else
tmp_total_rate = formatnumber((tmp_total_money / p_cont_cost) * 100, 2)
End if
Else
tmp_total_money = "0"
tmp_total_rate = "0"
end If
%>
<%=tmp_total_money%>원 (VAT별도), 비율 : <%=tmp_total_rate%>%
<%
end if
Rs.Close
%>
|
| 이메일 |
|
용역범위 |
<%
q = " SELECT p_gubn "
q = q +" FROM T_PROJECT_METHOD_CD "
q = q +" WHERE p_method_cd in (SELECT p_method_cd FROM T_PROJECT_METHOD WHERE "
If temp_p_child_sn = "" Then
q = q +" p_child_sn = '" & Request("p_child_sn") & "') "
Else
q = q +" p_child_sn = '" & temp_p_child_sn & "') "
End if
Rs.Open q, adoConn, 1
Dim p_gubn
If Rs.RecordCount > 0 then
p_gubn = Rs("p_gubn")
End If
Rs.close
%>
|
| KRi or KRC or KRD |
<% if "kri" = p_project_type_cd then %> KRi <% end if %>
<% if "krc" = p_project_type_cd then %> KRC <% end if %>
<% if "krt" = p_project_type_cd then %> KRT <% end if %>
<% if "krd" = p_project_type_cd then %> KRD <% end if %>
|
조사 국가 |
<% if "ko" = p_project_nation_cd then %> 국내 조사 <% end if %>
<% if "fn" = p_project_nation_cd then %> 해외 조사 <% end if %>
|
| 조사내용 |
|

<%
if p_sub_type = "M" then
cost_p_child_sn = p_sn
else
cost_p_child_sn = request("p_child_sn")
end if
%>
비용 집행 현황
|
|
|
| 구분 |
예산 비용 |
누적 집행 금액 |
차액 |
비율 |
| 연구 |
실사 |
연구 |
실사 |
경영전략실 (누적 집행 비용) |
연구 |
실사 |
연구 |
실사 |
| 직접비 |
<%
q = " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'research' and del_yes_no = 'no' " '연구
q = q + query_p_child_sn
Rs.Open q, adoConn, 1
tmp_research_esti_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_research_esti_money = "," & tmp_research_esti_money
end if
tmp_research_esti_money = left(right(Rs("total_money"),j), 1) & tmp_research_esti_money
Next
Else
tmp_research_esti_money = "0"
end If
%>
<%=tmp_research_esti_money%>원
<%
end if
Rs.Close
%>
|
<%
q = " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'field' and del_yes_no = 'no' " ' 실사
q = q + query_p_child_sn
Rs.Open q, adoConn, 1
tmp_field_esti_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_field_esti_money = "," & tmp_field_esti_money
end if
tmp_field_esti_money = left(right(Rs("total_money"),j), 1) & tmp_field_esti_money
Next
Else
tmp_field_esti_money = "0"
end If
%>
<%=tmp_field_esti_money%>원
<%
end if
Rs.Close
%>
|
<%
q = " select SUM(convert(float, act_money)) as total_money from direct_cost "
q = q & " where cost_type = 'research' and del_yes_no = 'no' "
if p_sub_type = "M" then
q = q & " and p_sn LIKE '"& p_sn &"%' "
else
q = q & " and p_sn LIKE '"& p_sn &"%' and p_child_sn = '" & request("p_child_sn") & "' "
end If
Rs.Open q, adoConn, 1
tmp_research_actual_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_research_actual_money = "," & tmp_research_actual_money
end if
tmp_research_actual_money = left(right(Rs("total_money"),j), 1) & tmp_research_actual_money
Next
Else
tmp_research_actual_money = "0"
end If
%>
<%=tmp_research_actual_money%>원
<%
end if
Rs.Close
%>
|
<%
q = " select SUM(convert(money, act_money)) as total_money from direct_cost "
q = q & " where cost_type = 'field' and del_yes_no = 'no' "
if p_sub_type = "M" then
q = q & " and p_sn LIKE '"& p_sn &"%' "
else
q = q & " and p_sn LIKE '"& p_sn &"%' and p_child_sn = '" & request("p_child_sn") & "' "
end If
Rs.Open q, adoConn, 3, 1
tmp_field_actual_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_field_actual_money = "," & tmp_field_actual_money
end if
tmp_field_actual_money = left(right(Rs("total_money"),j), 1) & tmp_field_actual_money
Next
Else
tmp_field_actual_money = "0"
end If
%>
<%=tmp_field_actual_money%>원
<%
end if
Rs.Close
%>
|
<%
q = " select SUM(convert(float, act_money)) as total_money from direct_cost "
q = q & " where cost_type = 'support' and del_yes_no = 'no' "
if p_sub_type = "M" then
q = q & " and p_sn LIKE '"& p_sn &"%' "
else
q = q & " and p_sn LIKE '"& p_sn &"%' and p_child_sn = '" & request("p_child_sn") & "' "
end If
Rs.Open q, adoConn, 1
tmp_support_actual_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_support_actual_money = "," & tmp_support_actual_money
end if
tmp_support_actual_money = left(right(Rs("total_money"),j), 1) & tmp_support_actual_money
Next
Else
tmp_support_actual_money = "0"
end If
%>
<%=tmp_support_actual_money%>원
<%
end if
Rs.Close
%>
|
<%
tmp_research_difference_money = ""
tmp_len = len(tmp_research_esti_money - tmp_research_actual_money)
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_research_difference_money = "," & tmp_research_difference_money
end if
tmp_research_difference_money = left(right(tmp_research_esti_money - tmp_research_actual_money,j), 1) & tmp_research_difference_money
Next
%>
<%=tmp_research_difference_money%>원
|
<%
tmp_field_difference_money = ""
tmp_len = len(tmp_field_esti_money - tmp_field_actual_money)
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_field_difference_money = "," & tmp_field_difference_money
end if
tmp_field_difference_money = left(right(tmp_field_esti_money - tmp_field_actual_money,j), 1) & tmp_field_difference_money
Next
%>
<%=tmp_field_difference_money%>원
|
<%
If tmp_research_esti_money = 0 Then
tmp_research_esti_money = 1
tmp_total_rate = "0.00"
Else
tmp_total_rate = formatnumber((tmp_research_actual_money / tmp_research_esti_money) * 100, 2)
End if
%>
<%=tmp_total_rate%>%
|
<%
If tmp_field_esti_money = 0 Then
tmp_field_esti_money = 1
tmp_total_rate = "0.00"
Else
tmp_total_rate = formatnumber((tmp_field_actual_money / tmp_field_esti_money) * 100, 2)
End if
%>
<%=tmp_total_rate%>%
|
|
<%
q = " "
q = q & " select intranet_project, "&VbCrlf
q = q & " p_child_sn, "&VbCrlf
q = q & " p_subject, "&VbCrlf
q = q & " allocation_cnt, "&VbCrlf
q = q & " escalation_cnt, "&VbCrlf
q = q & " error_cnt, "&VbCrlf
q = q & " complete_cnt, "&VbCrlf
q = q & " round(tok_rating, 2) as tok_rating, "&VbCrlf
q = q & " round(error_rating, 2) as error_rating "&VbCrlf
q = q & " from "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " select intranet_project, "&VbCrlf
q = q & " p_child_sn, "&VbCrlf
q = q & " p_subject, "&VbCrlf
q = q & " allocation_cnt, "&VbCrlf
q = q & " escalation_cnt, "&VbCrlf
q = q & " error_cnt, "&VbCrlf
q = q & " complete_cnt, "&VbCrlf
q = q & " case when complete_cnt = 0 then 0.00 else case when escalation_cnt = 0 then 0.00 else round(convert(float, complete_cnt)/escalation_cnt * 100, 2) end end as tok_rating, "&VbCrlf
q = q & " case when error_cnt = 0 then 0.00 else case when escalation_cnt = 0 then 0.00 else round(convert(float, error_cnt)/escalation_cnt * 100, 2) end end as error_rating "&VbCrlf
q = q & " from "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " SELECT case when TPM.intranet_project = '' then T.p_child_sn else TPM.intranet_project end as intranet_project, "&VbCrlf
q = q & " T.p_child_sn, "&VbCrlf
q = q & " TPM.p_subject, "&VbCrlf
q = q & " 0 as allocation_cnt, "&VbCrlf
q = q & " isnull(escalation_cnt,0) as escalation_cnt, "&VbCrlf
q = q & " isnull(T.error_cnt,0) as error_cnt, "&VbCrlf
q = q & " isnull(T.tok_cnt,0) as complete_cnt "&VbCrlf
q = q & " FROM "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " SELECT p_child_sn, "&VbCrlf
q = q & " sum(escalation_cnt) as escalation_cnt, "&VbCrlf
q = q & " sum(tok_cnt) as tok_cnt, "&VbCrlf
q = q & " sum(error_cnt) as error_cnt, "&VbCrlf
q = q & " sum(no_tel) as no_tel "&VbCrlf
q = q & " FROM "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " SELECT C.p_sn as p_child_sn, "&VbCrlf
q = q & " C.m_no as i_id, "&VbCrlf
q = q & " C.m_name, "&VbCrlf
q = q & " CASE WHEN isnull(C.r_sn, 0) <> 0 THEN 1 ELSE 0 END as escalation_cnt, "&VbCrlf
q = q & " D.r_result, "&VbCrlf
q = q & " CASE WHEN (D.r_result = '1' and D.qc_stat='OK') OR D.pass_stat = 'pass' THEN 1 ELSE 0 END as tok_cnt, "&VbCrlf
q = q & " CASE WHEN pass_stat = 'ERROR' THEN 1 ELSE 0 END as error_cnt, "&VbCrlf
q = q & " CASE WHEN D.r_result in ('5', '6', '7') AND isnull(D.pass_stat,'') not in ('error','pass') THEN 1 ELSE 0 END as no_tel "&VbCrlf
q = q & " FROM "&VbCrlf
q = q & " res C "&VbCrlf
q = q & " LEFT OUTER JOIN project2.dbo.T_INSPECTION_RES as D ON D.p_sn = C.p_sn AND D.r_sn = C.r_sn AND D.m_name = C.m_name "&VbCrlf
q = q & " where r_error is null "&VbCrlf
q = q & " AND s_error is null "&VbCrlf
q = q & " AND m_error is null "&VbCrlf
q = q & " AND q_error is null "&VbCrlf
q = q & " AND DelGubun = 'N' "&VbCrlf
q = q & " group by C.p_sn, C.m_no, C.m_name, C.r_sn, D.r_result, D.pass_stat, D.qc_stat "&VbCrlf
q = q & " ) as sumT "&VbCrlf
q = q & " GROUP BY p_child_sn "&VbCrlf
q = q & " ) AS T "&VbCrlf
q = q & " left outer join V_PROJECT_FCS TPM on T.p_child_sn = TPM.p_child_sn "&VbCrlf
q = q & " ) s "&VbCrlf
q = q & " union all "&VbCrlf
q = q & " select p.intranet_project as intranet_project, "&VbCrlf
q = q & " p.prj_code as p_child_sn, "&VbCrlf
q = q & " p.prj_name as p_subject, "&VbCrlf
q = q & " isnull(tqt.allocation_cnt, '0') as allocation_cnt, "&VbCrlf
q = q & " isnull(s.q_complete,'0') as escalation_cnt, "&VbCrlf
q = q & " isnull(error, '0') as error_cnt, "&VbCrlf
q = q & " isnull(tok, '0') as complete_cnt, "&VbCrlf
q = q & " case when isnull(tok, '0') = '0' then 0.00 else case when isnull(s.q_complete,'0') = '0' then 0.00 else round(convert(float, tok)/q_complete * 100, 2) end end as tok_rating, "&VbCrlf
q = q & " case when isnull(error, '0') = '0' then 0.00 else case when isnull(s.q_complete,'0') = '0' then 0.00 else round(convert(float, error)/q_complete * 100, 2) end end as error_rating "&VbCrlf
q = q & " from "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " SELECT CP.* "&VbCrlf
q = q & " FROM NEW_CATI.DBO.PROJECT CP "&VbCrlf
q = q & " left outer join PROJECT2.DBO.V_PROJECT_METHOD TPM ON CP.intranet_project = TPM.p_child_sn "&VbCrlf
q = q & " WHERE ISNULL(CP.prj_end_chk, '취소') != '취소' "&VbCrlf
q = q & " AND ISNULL(TPM.p_field_complete,'') = '' "&VbCrlf
q = q & " ) p left outer join "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " select sum(q_allocation) as allocation_cnt, "&VbCrlf
q = q & " prj_code "&VbCrlf
q = q & " from new_cati.dbo.T_QUOTA_TABLE "&VbCrlf
q = q & " where type='1' "&VbCrlf
q = q & " group by prj_code "&VbCrlf
q = q & " ) tqt on p.prj_code = tqt.prj_code left outer join "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " select T.prj_code, count(s_tcnt) as q_complete from "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " select s_tcnt, prj_code "&VbCrlf
q = q & " from new_cati.dbo.sheet1_send "&VbCrlf
q = q & " where chk='4' "&VbCrlf
q = q & " union all "&VbCrlf
q = q & " select s_tcnt, prj_code "&VbCrlf
q = q & " from new_cati.dbo.sheet1 "&VbCrlf
q = q & " ) T left outer join new_cati.dbo.T_INSPECTION_CATI A "&VbCrlf
q = q & " ON T.prj_code = A.prj_code and T.s_tcnt = A.tel_cnt and A.tel_del_yn = 'N' "&VbCrlf
q = q & " group by T.prj_code "&VbCrlf
q = q & " ) s on p.prj_code = s.prj_code left outer join "&VbCrlf
q = q & " ( "&VbCrlf
q = q & " select sum(case when tel_result = '1' then 1 else 0 end) as tok, sum(case when tel_result = '2' then 1 else 0 end) as error, a.prj_code "&VbCrlf
q = q & " from "&VbCrlf
q = q & " (select s_tcnt, s_client, prj_code from new_cati.dbo.sheet1 union all select s_tcnt, s_client, prj_code from new_cati.dbo.sheet1_send where chk = '4') a "&VbCrlf
q = q & " left outer join new_cati.dbo.T_INSPECTION_CATI b on a.prj_code = b.prj_code and a.s_client = b.tel_client_no and a.s_tcnt = b.tel_cnt "&VbCrlf
q = q & " where tel_del_yn='N' "&VbCrlf
q = q & " group by a.prj_code "&VbCrlf
q = q & " ) tci on s.prj_code = tci.prj_code "&VbCrlf
q = q & " ) a "&VbCrlf
If temp_p_child_sn = "" Then
q = q & " where isnull(intranet_project, '') <> '' and intranet_project = '" & Request("p_child_sn") & "' "&VbCrlf
Else
q = q & " where isnull(intranet_project, '') <> '' and intranet_project = '" & temp_p_child_sn & "' "&VbCrlf
End If
' Response.Write q
Rs.Open q, adoConn, 1
if Rs.recordCount > 0 then
%>
진행 현황
|
|
|
<%
end if
Rs.close
%>
조사 디자인
|
| 조사방법 |
조사내용 |
직접비 예산 |
조사지역 |
조사대상 |
표본수 |
조사기간 |
조사분류 |
실사수행 |
검증률 |
<%
'조사방법 가져오기
query = " SELECT p_index, PMC.p_method_cd, p_method_nm, p_intention, p_child_sn, p_sur_area, p_sur_target, p_sample, p_inspection_rate, p_research_date_st, p_research_date_end, p_sur_part, p_field_process "&VbCrlf
query = query & " ,p_rsch_dept, p_field_dept, p_is_dept, p_it_dept, p_supp_dept "&VbCrlf
query = query & " ,isnull(p_rsch_1_a, '') as p_rsch_1_a, isnull(p_rsch_2_a, '') as p_rsch_2_a, isnull(p_rsch_3_a, '') as p_rsch_3_a, isnull(p_rsch_4_a, '') as p_rsch_4_a "&VbCrlf '##### 연구
query = query & " ,isnull(p_rsch_1_b, '') as p_rsch_1_b, isnull(p_rsch_2_b, '') as p_rsch_2_b, isnull(p_rsch_3_b, '') as p_rsch_3_b, isnull(p_rsch_4_b, '') as p_rsch_4_b "&VbCrlf '##### 연구
query = query & " ,isnull(p_rsch_1_c, '') as p_rsch_1_c, isnull(p_rsch_2_c, '') as p_rsch_2_c, isnull(p_rsch_3_c, '') as p_rsch_3_c, isnull(p_rsch_4_c, '') as p_rsch_4_c "&VbCrlf '##### 연구
query = query & " ,isnull(p_sv_1, '') as p_sv_1 , isnull(p_sv_2, '') as p_sv_2 , isnull(p_sv_3, '') as p_sv_3 , isnull(p_sv_4, '') as p_sv_4 "&VbCrlf '##### 실사
query = query & " ,isnull(p_punch_1, '') as p_punch_1 , isnull(p_punch_2, '') as p_punch_2 , isnull(p_punch_3, '') as p_punch_3 , isnull(p_punch_4, '') as p_punch_4 "&VbCrlf '##### 실사
query = query & " ,isnull(p_verify_1, '') as p_verify_1, isnull(p_verify_2, '') as p_verify_2, isnull(p_verify_3, '') as p_verify_3, isnull(p_verify_4, '') as p_verify_4 "&VbCrlf '##### 실사
query = query & " ,isnull(p_code_1, '') as p_code_1 , isnull(p_code_2, '') as p_code_2 , isnull(p_code_3, '') as p_code_3 , isnull(p_code_4, '') as p_code_4 "&VbCrlf '##### DP
query = query & " ,isnull(p_dp_1, '') as p_dp_1 , isnull(p_dp_2, '') as p_dp_2 , isnull(p_dp_3, '') as p_dp_3 , isnull(p_dp_4, '') as p_dp_4 "&VbCrlf '##### DP
query = query & " ,isnull(p_it_1, '') as p_it_1 , isnull(p_it_2, '') as p_it_2 , isnull(p_it_3, '') as p_it_3 , isnull(p_it_4, '') as p_it_4 "&VbCrlf '##### 경영전략실
query = query & " ,isnull(p_supp_1, '') as p_supp_1 , isnull(p_supp_2, '') as p_supp_2 , isnull(p_supp_3, '') as p_supp_3 , isnull(p_supp_4, '') as p_supp_4 "&VbCrlf
query = query & " ,isnull(p_rsch_date_st, '') as p_rsch_date_st, isnull(p_rsch_date_end, '') as p_rsch_date_end, isnull(p_field_date_st, '') as p_field_date_st, isnull(p_field_date_end, '') as p_field_date_end "&VbCrlf
query = query & " ,isnull(p_punch_date_st, '') as p_punch_date_st, isnull(p_punch_date_end, '') as p_punch_date_end "&VbCrlf
query = query & " ,isnull(p_code_date_st, '') as p_code_date_st, isnull(p_code_date_end, '') as p_code_date_end, isnull(p_verify_date_st, '') as p_verify_date_st, isnull(p_verify_date_end, '') as p_verify_date_end "&VbCrlf
query = query & " ,isnull(p_dp_date_st, '') as p_dp_date_st, isnull(p_dp_date_end, '') as p_dp_date_end, isnull(p_it_date_st, '') as p_it_date_st, isnull(p_it_date_end, '') as p_it_date_end "&VbCrlf
query = query & " ,isnull(p_premeet_date, '') as p_premeet_date, isnull(p_premeet_time, '') as p_premeet_time, isnull(p_premeet_place, '') as p_premeet_place "&VbCrlf
query = query & " ,isnull(p_ot_date, '') as p_ot_date, isnull(p_ot_time, '') as p_ot_time, isnull(p_ot_place, '') as p_ot_place, isnull(p_sur_memo, '') as p_sur_memo, isnull(p_memo, '') as p_memo "&VbCrlf
query = query & " ,p_progress_flag, p_progress_status, p_input_complete "&VbCrlf
query = query & " FROM T_PROJECT_METHOD PM INNER JOIN T_PROJECT_METHOD_CD PMC ON PM.p_method_cd = PMC.p_method_cd "&VbCrlf
query = query & " WHERE p_method_yn = 'y' "&VbCrlf
query = query & " AND p_sn = '" & p_sn & "'"&VbCrlf
query = query & " AND p_sub_type = '" & p_sub_type & "'"&VbCrlf
If p_sub_type = "C" Then
query = query & " AND PM.p_method_cd = '" & req_p_method_cd & "'"&VbCrlf
If initstatus <> "init" Then
query = query & " AND PM.p_child_sn = '" & Request("p_child_sn") & "'"&VbCrlf
End if
End If
'Response.Write Query
Rs.Open query, adoConn, 1
if Rs.RecordCount > 0 then
for i = 1 to Rs.RecordCount
If Rs("p_progress_flag") = "" Then
'프로젝트 본 테이블 수정
'---------------------------------------
query2 = " UPDATE T_PROJECT_METHOD "
query2 = query2 & " SET p_progress_flag = 'xxx' "
'##### 연구
query2 = query2 & " ,p_rsch_1_a = '' "
query2 = query2 & " ,p_rsch_2_a = '' "
query2 = query2 & " ,p_rsch_3_a = '' "
query2 = query2 & " ,p_rsch_4_a = '' "
query2 = query2 & " ,p_rsch_1_b = '' "
query2 = query2 & " ,p_rsch_2_b = '' "
query2 = query2 & " ,p_rsch_3_b = '' "
query2 = query2 & " ,p_rsch_4_b = '' "
query2 = query2 & " ,p_rsch_1_c = '' "
query2 = query2 & " ,p_rsch_2_c = '' "
query2 = query2 & " ,p_rsch_3_c = '' "
query2 = query2 & " ,p_rsch_4_c = '' "
'##### 실사
query2 = query2 & " ,p_sv_1 = '' "
query2 = query2 & " ,p_sv_2 = '' "
query2 = query2 & " ,p_sv_3 = '' "
query2 = query2 & " ,p_sv_4 = '' "
query2 = query2 & " ,p_punch_1 = '' "
query2 = query2 & " ,p_punch_2 = '' "
query2 = query2 & " ,p_punch_3 = '' "
query2 = query2 & " ,p_punch_4 = '' "
query2 = query2 & " ,p_verify_1 = '' "
query2 = query2 & " ,p_verify_2 = '' "
query2 = query2 & " ,p_verify_3 = '' "
query2 = query2 & " ,p_verify_4 = '' "
query2 = query2 & " ,p_code_1 = '' "
query2 = query2 & " ,p_code_2 = '' "
query2 = query2 & " ,p_code_3 = '' "
query2 = query2 & " ,p_code_4 = '' "
'##### DP
query2 = query2 & " ,p_dp_1 = '' "
query2 = query2 & " ,p_dp_2 = '' "
query2 = query2 & " ,p_dp_3 = '' "
query2 = query2 & " ,p_dp_4 = '' "
'##### 경영전략실
query2 = query2 & " ,p_it_1 = '' "
query2 = query2 & " ,p_it_2 = '' "
query2 = query2 & " ,p_it_3 = '' "
query2 = query2 & " ,p_it_4 = '' "
query2 = query2 & " WHERE p_sn = '"& p_sn &"' and p_child_sn = '"& Request("p_child_sn") &"' and p_method_cd = " & Rs("p_method_cd") & " "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query2
dbin.Close
End If
Rs.moveNext
Next
Rs.Close
End if
rsa.Open query, adoConn, 1
research_count = rsa.RecordCount
%>
<%
Dim p_index()
Dim p_method_cd()
Dim p_child_sn()
Dim p_intention()
Dim p_sur_area()
Dim p_sur_target()
Dim p_sample()
Dim p_inspection_rate()
Dim p_research_date_st()
Dim p_research_date_end()
Dim p_sur_part()
Dim p_field_process()
Dim p_rsch_dept()
Dim p_rsch_team()
Dim p_field_dept()
Dim p_is_dept()
Dim p_it_dept() '##### 개발팀
Dim p_supp_dept()
Dim p_rsch_a() '##### 연구(기획)
Dim p_rsch_b() '##### 연구(분석)
Dim p_rsch_c() '##### 연구(보고서)
Dim p_sv_() '##### 실사
Dim p_verify_() '##### 실사(검증)
Dim p_punch_() '##### 실사(펀치)
Dim p_code_() '##### DP(코딩)
Dim p_dp_() '##### DP
Dim p_it_() '##### 경영전략실(IT)
Dim p_supp_()
Dim p_rsch_date_st() '##### 연구
Dim p_rsch_date_end()
Dim p_rsch_date_time_st()
Dim p_rsch_date_time_end()
Dim p_field_date_st() '##### 실사
Dim p_field_date_end()
Dim p_field_date_time_st()
Dim p_field_date_time_end()
Dim p_verify_date_st() '##### 실사(검증)
Dim p_verify_date_end()
Dim p_verify_date_time_st()
Dim p_verify_date_time_end()
Dim p_punch_date_st() '##### 실사(펀치)
Dim p_punch_date_end()
Dim p_punch_date_time_st()
Dim p_punch_date_time_end()
Dim p_code_date_st() '##### DP(코딩)
Dim p_code_date_end()
Dim p_code_date_time_st()
Dim p_code_date_time_end()
Dim p_dp_date_st() '##### DP
Dim p_dp_date_end()
Dim p_dp_date_time_st()
Dim p_dp_date_time_end()
Dim p_it_date_st() '##### 경영전략실(IT)
Dim p_it_date_end()
Dim p_it_date_time_st()
Dim p_it_date_time_end()
Dim p_premeet_date() '##### 내부미팅
Dim p_premeet_time()
Dim p_premeet_place()
Dim p_ot_date() '##### 실사OT
Dim p_ot_time()
Dim p_ot_place()
Dim p_progress_flag()
Dim p_progress_status()
Dim p_sur_memo()
Dim p_input_complete()
Dim tmp_input_complete()
Dim tmp_progress_flag()
ReDim p_index(research_count)
ReDim p_method_cd(research_count, 2)
ReDim p_child_sn(research_count)
ReDim p_intention(research_count)
ReDim p_sur_area(research_count)
ReDim p_sur_target(research_count)
ReDim p_sample(research_count)
ReDim p_inspection_rate(research_count)
ReDim p_research_date_st(research_count)
ReDim p_research_date_end(research_count)
ReDim p_sur_part(research_count)
ReDim p_field_process(research_count)
ReDim p_rsch_dept(research_count)
ReDim p_rsch_team(research_count)
ReDim p_field_dept(research_count)
ReDim p_is_dept(research_count)
ReDim p_it_dept(research_count)
ReDim p_supp_dept(research_count)
ReDim p_rsch_a(4, research_count) '##### 연구(기획)
ReDim p_rsch_b(4, research_count) '##### 연구(실사)
ReDim p_rsch_c(4, research_count) '##### 연구(보고)
ReDim p_sv_(4, research_count) '##### 실사
ReDim p_verify_(4, research_count) '##### 실사(검증)
ReDim p_punch_(4, research_count) '##### 실사(펀치)
ReDim p_code_(4, research_count) '##### 실사(코딩)
ReDim p_dp_(4, research_count) '##### DP
ReDim p_it_(4, research_count) '##### 경영전략실(IT)
ReDim p_supp_(4, research_count)
ReDim p_rsch_date_st(research_count) '##### 연구
ReDim p_rsch_date_end(research_count)
ReDim p_field_date_st(research_count) '##### 실사
ReDim p_field_date_end(research_count)
ReDim p_verify_date_st(research_count) '##### 실사(검증)
ReDim p_verify_date_end(research_count)
ReDim p_punch_date_st(research_count) '##### 실사(펀치)
ReDim p_punch_date_end(research_count)
ReDim p_code_date_st(research_count) '##### 실사(코딩)
ReDim p_code_date_end(research_count)
ReDim p_dp_date_st(research_count) '##### DP
ReDim p_dp_date_end(research_count)
ReDim p_it_date_st(research_count) '##### 경영전략실(IT)
ReDim p_it_date_end(research_count)
ReDim p_rsch_date_time_st(research_count) '##### 연구
ReDim p_rsch_date_time_end(research_count)
ReDim p_field_date_time_st(research_count) '##### 실사
ReDim p_field_date_time_end(research_count)
ReDim p_verify_date_time_st(research_count) '##### 실사(검증)
ReDim p_verify_date_time_end(research_count)
ReDim p_punch_date_time_st(research_count) '##### 실사(펀치)
ReDim p_punch_date_time_end(research_count)
ReDim p_code_date_time_st(research_count) '##### 실사(코딩)
ReDim p_code_date_time_end(research_count)
ReDim p_dp_date_time_st(research_count) '##### DP
ReDim p_dp_date_time_end(research_count)
ReDim p_it_date_time_st(research_count) '##### 경영전략실(IT)
ReDim p_it_date_time_end(research_count)
ReDim p_premeet_date(research_count)
ReDim p_premeet_time(research_count)
ReDim p_premeet_place(research_count)
ReDim p_ot_date(research_count)
ReDim p_ot_time(research_count)
ReDim p_ot_place(research_count)
ReDim p_progress_flag(research_count)
ReDim p_progress_status(research_count)
ReDim p_input_complete(research_count)
ReDim p_sur_memo(research_count)
p_index(1) = rsa("p_index")
p_method_cd(1, 1) = rsa("p_method_cd")
p_method_cd(1, 2) = rsa("p_method_nm")
tmp_method_cd = rsa("p_method_cd")
tmp_method_count = i
If CInt(tmp_method_cd) < 10 Then
tmp_method_cd = "0" & tmp_method_cd
End If
If tmp_method_count < 10 Then
tmp_method_count = "0" & 1
End if
If rsa("p_child_sn") = "" Or Len(rsa("p_child_sn")) < 10 Then
p_child_sn(1) = p_sn & "_" & p_sub_type & tmp_method_count
Else
p_child_sn(1) = rsa("p_child_sn")
End if
p_intention(1) = rsa("p_intention")
p_sur_area(1) = rsa("p_sur_area")
p_sur_target(1) = rsa("p_sur_target")
p_sample(1) = rsa("p_sample")
p_inspection_rate(1)= rsa("p_inspection_rate")
p_research_date_st(1) = rsa("p_research_date_st")
p_research_date_end(1) = rsa("p_research_date_end")
p_sur_part(1) = rsa("p_sur_part")
p_field_process(1) = rsa("p_field_process")
p_rsch_dept(1) = rsa("p_rsch_dept")
p_field_dept(1) = rsa("p_field_dept")
p_is_dept(1) = rsa("p_is_dept")
p_it_dept(1) = rsa("p_it_dept")
p_supp_dept(1) = rsa("p_supp_dept")
'##### 연구
p_rsch_a(1, 1) = rsa("p_rsch_1_a")
p_rsch_a(2, 1) = rsa("p_rsch_2_a")
p_rsch_a(3, 1) = rsa("p_rsch_3_a")
p_rsch_a(4, 1) = rsa("p_rsch_4_a")
p_rsch_b(1, 1) = rsa("p_rsch_1_b")
p_rsch_b(2, 1) = rsa("p_rsch_2_b")
p_rsch_b(3, 1) = rsa("p_rsch_3_b")
p_rsch_b(4, 1) = rsa("p_rsch_4_b")
p_rsch_c(1, 1) = rsa("p_rsch_1_c")
p_rsch_c(2, 1) = rsa("p_rsch_2_c")
p_rsch_c(3, 1) = rsa("p_rsch_3_c")
p_rsch_c(4, 1) = rsa("p_rsch_4_c")
'##### 실사
p_sv_(1, 1) = rsa("p_sv_1")
p_sv_(2, 1) = rsa("p_sv_2")
p_sv_(3, 1) = rsa("p_sv_3")
p_sv_(4, 1) = rsa("p_sv_4")
p_verify_(1, 1) = rsa("p_verify_1")
p_verify_(2, 1) = rsa("p_verify_2")
p_verify_(3, 1) = rsa("p_verify_3")
p_verify_(4, 1) = rsa("p_verify_4")
p_punch_(1, 1) = rsa("p_punch_1")
p_punch_(2, 1) = rsa("p_punch_2")
p_punch_(3, 1) = rsa("p_punch_3")
p_punch_(4, 1) = rsa("p_punch_4")
p_code_(1, 1) = rsa("p_code_1")
p_code_(2, 1) = rsa("p_code_2")
p_code_(3, 1) = rsa("p_code_3")
p_code_(4, 1) = rsa("p_code_4")
'##### DP
p_dp_(1, 1) = rsa("p_dp_1")
p_dp_(2, 1) = rsa("p_dp_2")
p_dp_(3, 1) = rsa("p_dp_3")
p_dp_(4, 1) = rsa("p_dp_4")
'###### 경영전략실
p_it_(1, 1) = rsa("p_it_1")
p_it_(2, 1) = rsa("p_it_2")
p_it_(3, 1) = rsa("p_it_3")
p_it_(4, 1) = rsa("p_it_4")
p_supp_(1, 1) = rsa("p_supp_1")
p_supp_(2, 1) = rsa("p_supp_2")
p_supp_(3, 1) = rsa("p_supp_3")
p_supp_(4, 1) = rsa("p_supp_4")
'##### 연구
if rsa("p_rsch_date_st") <> "" then
p_rsch_date_st(1) = split(rsa("p_rsch_date_st"), " ")(0)
p_rsch_date_time_st(1) = left(split(rsa("p_rsch_date_st"), " ")(1),2)
else
p_rsch_date_st(1) = ""
p_rsch_date_time_st(1) = ""
end if
if rsa("p_rsch_date_end") <> "" then
p_rsch_date_end(1) = split(rsa("p_rsch_date_end"), " ")(0)
p_rsch_date_time_end(1) = left(split(rsa("p_rsch_date_end"), " ")(1),2)
else
p_rsch_date_end(1) = ""
p_rsch_date_time_end(1) = ""
end if
'##### 실사
if rsa("p_field_date_st") <> "" then
p_field_date_st(1) = split(rsa("p_field_date_st"), " ")(0)
p_field_date_time_st(1) = left(split(rsa("p_field_date_st"), " ")(1),2)
else
p_field_date_st(1) = ""
p_field_date_time_st(1) = ""
end if
if rsa("p_field_date_end") <> "" then
p_field_date_end(1) = split(rsa("p_field_date_end"), " ")(0)
p_field_date_time_end(1)= left(split(rsa("p_field_date_end"), " ")(1),2)
else
p_field_date_end(1) = ""
p_field_date_time_end(1)= ""
end if
if rsa("p_verify_date_st") <> "" then
p_verify_date_st(1) = split(rsa("p_verify_date_st"), " ")(0)
p_verify_date_time_st(1)= left(split(rsa("p_verify_date_st"), " ")(1),2)
else
p_verify_date_st(1) = ""
p_verify_date_time_st(1)= ""
end if
if rsa("p_verify_date_end") <> "" then
p_verify_date_end(1) = split(rsa("p_verify_date_end"), " ")(0)
p_verify_date_time_end(1)= left(split(rsa("p_verify_date_end"), " ")(1),2)
else
p_verify_date_end(1) = ""
p_verify_date_time_end(1)= ""
end if
if rsa("p_punch_date_st") <> "" then
p_punch_date_st(1) = split(rsa("p_punch_date_st"), " ")(0)
p_punch_date_time_st(1) = left(split(rsa("p_punch_date_st"), " ")(1),2)
else
p_punch_date_st(1) = ""
p_punch_date_time_st(1) = ""
end if
if rsa("p_punch_date_end") <> "" then
p_punch_date_end(1) = split(rsa("p_punch_date_end"), " ")(0)
p_punch_date_time_end(1) = left(split(rsa("p_punch_date_end"), " ")(1),2)
else
p_punch_date_end(1) = ""
p_punch_date_time_end(1) = ""
end if
'###### DP
if rsa("p_code_date_st") <> "" then
p_code_date_st(1) = split(rsa("p_code_date_st"), " ")(0)
p_code_date_time_st(1) = left(split(rsa("p_code_date_st"), " ")(1),2)
else
p_code_date_st(1) = ""
p_code_date_time_st(1) = ""
end if
if rsa("p_code_date_end") <> "" then
p_code_date_end(1) = split(rsa("p_code_date_end"), " ")(0)
p_code_date_time_end(1) = left(split(rsa("p_code_date_end"), " ")(1),2)
else
p_code_date_end(1) = ""
p_code_date_time_end(1) = ""
end if
if rsa("p_dp_date_st") <> "" then
p_dp_date_st(1) = split(rsa("p_dp_date_st"), " ")(0)
p_dp_date_time_st(1) = left(split(rsa("p_dp_date_st"), " ")(1),2)
else
p_dp_date_st(1) = ""
p_dp_date_time_st(1) = ""
end if
if rsa("p_dp_date_end") <> "" then
p_dp_date_end(1) = split(rsa("p_dp_date_end"), " ")(0)
p_dp_date_time_end(1) = left(split(rsa("p_dp_date_end"), " ")(1),2)
else
p_dp_date_end(1) = ""
p_dp_date_time_end(1) = ""
end if
'###### 경영전략실(1T)
if rsa("p_it_date_st") <> "" then
p_it_date_st(1) = split(rsa("p_it_date_st"), " ")(0)
p_it_date_time_st(1) = left(split(rsa("p_it_date_st"), " ")(1),2)
else
p_it_date_st(1) = ""
p_it_date_time_st(1) = ""
end if
if rsa("p_it_date_end") <> "" then
p_it_date_end(1) = split(rsa("p_it_date_end"), " ")(0)
p_it_date_time_end(1) = left(split(rsa("p_it_date_end"), " ")(1),2)
else
p_it_date_end(1) = ""
p_it_date_time_end(1) = ""
end if
p_premeet_date(1) = rsa("p_premeet_date")
p_premeet_time(1) = rsa("p_premeet_time")
p_premeet_place(1) = rsa("p_premeet_place")
p_ot_date(1) = rsa("p_ot_date")
p_ot_time(1) = rsa("p_ot_time")
p_ot_place(1) = rsa("p_ot_place")
p_sur_memo(1) = rsa("p_sur_memo")
p_progress_flag(1) = rsa("p_progress_flag")
p_progress_status(1) = rsa("p_progress_status")
p_input_complete(1) = rsa("p_input_complete")
%>
|
|
|
<%
q = " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'field' and del_yes_no = 'no' and p_child_sn = '" & p_child_sn(1) & "' "
Rs.Open q, adoConn, 1
tmp_total_money = ""
if Rs.RecordCount = 1 Then
if Rs("total_money") <> "" then
tmp_len = len(Rs("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_total_money = "," & tmp_total_money
end if
tmp_total_money = left(right(Rs("total_money"),j), 1) & tmp_total_money
Next
Else
tmp_total_money = "0"
end If
%>
<%=tmp_total_money%>원
<%
end if
Rs.Close
%>
|
|
|
|
~
|
|
|
%
|
<%
rsa.Close
%>
|
업무 수행 인력/일정
<%
Dim detailViewShow
Dim document_work_flow
detailViewShow = False
document_work_flow = false
If CInt(p_progress_status(1)) >= 1 Then
If CInt(p_progress_status(1)) = 1 Then
If session("depart_code") = p_depart_dep or session("depart_code") = "0" or (session("depart_code") = "64" and p_depart_dep = "61") or (session("depart_code") = "63" and p_depart_dep = "62") Then
detailViewShow = true
End If
%>
(참여부서 정보 입력 중 입니다.)
<%
ElseIf CInt(p_progress_status(1)) = 6 Then
detailViewShow = True
query = "select p_progress_flag, p_input_complete, p_field_dept, isnull(sv_prog, '') as sv_prog, isnull(qc_prog, '') as qc_prog "
query = query & " from T_PROJECT_METHOD TPM LEFT JOIN direct_cost_field DCF ON TPM.p_child_sn = DCF.p_child_sn AND DCF.del_yn = 'n' "
query = query & " where p_sn = '"&p_sn&"' and p_sub_type = '"&p_sub_type&"' "
If p_sub_type = "C" Then
query = query + " and TPM.p_child_sn = '"&p_child_sn(1)&"' "
End if
Dim direct_cost_depart
Dim information_depart
ReDim tmp_input_complete(3)
ReDim tmp_progress_flag(3)
Rs.Open query, adoConn, 1
if Rs.RecordCount > 0 Then
If p_sub_type = "C" Then
if Rs("p_progress_flag") = "ooo" then
If Rs("p_input_complete") = "ooo" Or Rs("p_input_complete") = "oooo" Then '' index 1 연구, index 2 실사, index 3 QC팀
document_work_flow = True
Else
if mid(Rs("p_input_complete"),1,1) = "x" then
direct_cost_depart = "연구 "
end if
if mid(Rs("p_input_complete"),2,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "실사"
if Rs("p_field_dept") = "8" Then
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(QC) "
End If
ElseIf Rs("p_field_dept") = "9" Then
if Rs("sv_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(SV) "
End If
Else
if Rs("sv_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(SV"
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & ", QC) "
Else
direct_cost_depart = direct_cost_depart & ") "
End If
Else
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(QC) "
End If
End If
End If
end if
if mid(Rs("p_input_complete"),3,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "QC "
end if
End if
else
if mid(Rs("p_progress_flag"),1,1) = "x" then
information_depart = "연구 "
end if
if mid(Rs("p_progress_flag"),2,1) = "x" then
if information_depart <> "" then
information_depart = information_depart & ", "
End if
information_depart = information_depart & "실사 "
end if
if mid(Rs("p_progress_flag"),3,1) = "x" then
if information_depart <> "" then
information_depart = information_depart & ", "
End if
information_depart = information_depart & "DP "
end if
if mid(Rs("p_input_complete"),1,1) = "x" then
direct_cost_depart = "연구 "
end if
if mid(Rs("p_input_complete"),2,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "실사"
if Rs("p_field_dept") = "8" Then
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(QC) "
Else
direct_cost_depart = direct_cost_depart & " "
End If
ElseIf Rs("p_field_dept") = "9" Then
if Rs("sv_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(SV) "
Else
direct_cost_depart = direct_cost_depart & " "
End If
Else
if Rs("sv_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(SV"
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & ", QC) "
Else
direct_cost_depart = direct_cost_depart & ") "
End If
Else
if Rs("qc_prog") = "" Then
direct_cost_depart = direct_cost_depart & "(QC) "
Else
direct_cost_depart = direct_cost_depart & " "
End If
End If
End If
end if
if mid(Rs("p_input_complete"),3,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "QC "
end if
end if
Else
End if
end if
Rs.Close
If document_work_flow Then
%>
(직접비 예산 입력 완료. 수행계획서 결재 상신 하세요)
<%
Else
if information_depart <> "" then
%>
(<%=information_depart%>정보 입력 중)
<%
end if
if direct_cost_depart <> "" then
%>
(<%=direct_cost_depart%>직접비 예산 정보 입력 중)
<%
end if
End if
ElseIf CInt(p_progress_status(1)) = 7 Then
detailViewShow = true
%>
(수행계획서 결재 중) - (<%= order_name %> 결재 단계)
<%
ElseIf CInt(p_progress_status(1)) = 8 Then
detailViewShow = true
%>
(수행계획서 결재 완료)
<%
detailViewShow = true
End if
Else
detailViewShow = true
End If
%>
|
참여 부서
| 리서치앤컨설팅 |
데이터이노베이션 |
디지털컨버전스 |
|
|
|
|
<%if p_progress_status(1) = "008" then %>
| 완료 처리 여부
<%if p_research_complete = "1" and p_field_complete = "1" and p_dp_complete = "1" then %>
(전체 완료 됨)
<%end if %>
|
|
<%if p_rsch_dept(1) <> "900" then %><%if p_research_complete = "1" then %>완료
<%if session("Depart_Code") = 18 Or session("Depart_Code") = 19 Or Session("User_Number")="20220303" Or Session("User_Number")="20220410" then '20240726 Depart_Code 이동으로 번호로 추가 %>
(해제)
<%end if %>
<%end if %>
<%else %>미참여<%end if %>
|
<%if p_field_dept(1) <> "900" then %><%if p_field_complete = "1" then %>완료
<%if session("Depart_Code") = 18 Or session("Depart_Code") = 19 Or Session("User_Number")="20220303" Or Session("User_Number")="20220410" then %>
(해제)
<%end if %>
<%end if %>
<%else %>미참여<%end if %>
|
<%if p_is_dept(1) <> "900" then %><%if p_dp_complete = "1" then %>완료
<%if session("Depart_Code") = 18 Or session("Depart_Code") = 19 Or Session("User_Number")="20220303" Or Session("User_Number")="20220410" then %>
(해제)
<%end if %>
<%end if %>
<%else %>미참여<%end if %>
<%if p_it_dept(1) <> "900" then %><%if p_it_complete = "1" then %>완료
<%if session("Depart_Code") = 18 Or session("Depart_Code") = 19 Or Session("User_Number")="20220303" Or Session("User_Number")="20220410" then %>
(해제)
<%end if %>
<%end if %>
<%else %>미참여<%end if %>
|
<%end if %>
|
<%
If CInt(p_progress_status(1)) > 1 Then
%>
|
참여인력
| 순번 |
리서치앤컨설팅<%if p_rsch_dept(1) <> "900" then %> <%end if %> |
데이터이노베이션 |
디지털컨버전스 |
| 기획(설문지) |
실사(분석) |
보고(제출) |
실사 |
검증 |
펀치 |
코딩 |
분석 |
DS/DB |
<%for k = 1 to 4 %>
| <%=k %> |
|
|
|
|
|
|
|
|
|
<% Next %>
|
일정
|
<%
End if
%>
|
|
|
첨부문서
* 프로젝트 관련 일체의 자료(제안서, 보고서, 견적서 등)는 영업비밀이 포함된 회사의 자산입니다.
프로젝트 수행에 참고하는 목적 외 사적으로 사용하거나 외부로 유출하는 행위를 금지합니다. (다운로드 로그 정기/수시 모니터링★)
|
| 순번 |
자료카테고리 |
첨부문서파일명 |
담당자 |
첨부일자 |
<%
query = " SELECT f_id, f_kind, f_p_sn, f_file_name, f_save_name, f_input_dt, f_input_user, p_name "
query = query & " FROM T_SYSTEM_ATTACH as TSA "
query = query & " LEFT OUTER JOIN person as P "
query = query & " ON TSA.f_input_user = P.p_no "
query = query & " WHERE f_p_sn = '"&p_sn& "' "
query = query & " AND f_use_yn = 'Y' "
query = query & " AND f_work_type = '001' and f_kind <> '099' "
query = query & " order by CASE WHEN f_kind = '010' THEN 0 ELSE 1 END, f_kind, f_id "
Rs.Open query, adoConn, 1
attach_file_count = Rs.recordCount
dim f_attach_info()
redim f_attach_info(attach_file_count, 6)
Dim f_attach_index
f_attach_index = 1
select_kind_code_flag = True
other_kind_code_falg = True
default_kind_code_flag = false
kind_code = ""
i = 0
row_cnt = 1
Do While i < 10
If i = 0 Then
kind_code = "010"
Else
kind_code = "00" & CStr(i)
End If
If attach_file_count > 0 then
If default_kind_code_flag Then
select_kind_code_flag = true
Else
If kind_code = Rs("f_kind") Then
select_kind_code_flag = False
other_kind_code_falg = False
f_attach_info(f_attach_index, 0) = Rs("f_id")
f_attach_info(f_attach_index, 1) = Rs("f_kind")
f_attach_info(f_attach_index, 2) = Rs("f_file_name")
f_attach_info(f_attach_index, 3) = Rs("p_name")
f_attach_info(f_attach_index, 4) = Rs("f_input_dt")
f_attach_info(f_attach_index, 5) = Rs("f_input_user")
Else
select_kind_code_flag = True
End If
End If
If select_kind_code_flag Then
If other_kind_code_falg then
%>
| <%=row_cnt%> |
<% If kind_code = "010" Then %>
<% Else %>
<% End If %>
|
<% If kind_code = "010" Then %>
* '프로젝트 계약서', '일반용역계약서' 등 공식 계약서류 최종 날인본 첨부
단, 프로젝트 특성에 따라 공식 계약서류가 부재할 시, 계약 또는 프로젝트 진행이 확정되었다는 내용이 포함된 공문 또는 이메일 내용 캡쳐본 등으로 대체 가능
(클라이언트명, 조사명, 조사설계개요, 계약액 등 계약 주요내용 반드시 포함되어 있어야 함★)
<% End If %>
|
|
|
<%
row_cnt = row_cnt + 1
other_kind_code_falg = false
End if
i = i + 1
other_kind_code_falg = true
Else
%>
| <%=row_cnt%> |
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount
if rsa("c_common_code") = kind_code Then
%>
"/>
" readonly style="border: 0px none0; text-align: center;"/>
<%
end if
rsa.MoveNext
next
end if
rsa.Close
%>
|
<% If kind_code = "010" Then %>
* '프로젝트 계약서', '일반용역계약서' 등 공식 계약서류 최종 날인본 첨부
단, 프로젝트 특성에 따라 공식 계약서류가 부재할 시, 계약 또는 프로젝트 진행이 확정되었다는 내용이 포함된 공문 또는 이메일 내용 캡쳐본 등으로 대체 가능
(클라이언트명, 조사명, 조사설계개요, 계약액 등 계약 주요내용 반드시 포함되어 있어야 함★)
<% End If %>
10 Then %> onclick="download(<%=f_attach_info(f_attach_index, 0)%>)" <% end if %>
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>style="width:480px; color:blue; cursor:pointer;"<%Else %>style="width:540px; color:blue; cursor:pointer;"<%End If %> value = "<%=f_attach_info(f_attach_index, 2)%>" readonly/>
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>
<% End If %>
|
<%=f_attach_info(f_attach_index, 3)%> |
<%=f_attach_info(f_attach_index, 4)%> |
<%
f_attach_index = f_attach_index + 1
row_cnt = row_cnt + 1
If f_attach_index <= attach_file_count Then
Rs.MoveNext
Else
If kind_code <> "009" Then
default_kind_code_flag = true
else
Exit do
End if
End if
End If
Else
%>
| <%=row_cnt%> |
<% If kind_code = "010" Then %>
<% Else %>
<% End If %>
|
<% If kind_code = "010" Then %>
* '프로젝트 계약서', '일반용역계약서' 등 공식 계약서류 최종 날인본 첨부
단, 프로젝트 특성에 따라 공식 계약서류가 부재할 시, 계약 또는 프로젝트 진행이 확정되었다는 내용이 포함된 공문 또는 이메일 내용 캡쳐본 등으로 대체 가능
(클라이언트명, 조사명, 조사설계개요, 계약액 등 계약 주요내용 반드시 포함되어 있어야 함★)
<% End If %>
|
|
|
<%
row_cnt = row_cnt + 1
i = i + 1
End if
Loop
Rs.Close
%>
|
|
|
<%
If detailViewShow Then
%>
<% If Session("teamplace") <> 10 Then '인턴,계약직,프리랜서일 경우 안보이도록 %>
<%
if CInt(p_progress_status(1)) <> 7 then
'if not (p_depart_name = "field" and session("teamplace") < 3) then
%>
<%
'end if
end if
%>
<%
'######
If CInt(p_progress_status(1)) >= 6 Then
%>
', '<%=tmp_year%>', '<%=cost_type%>', '<%=p_depart_name%>')">
<%
End If
%>
<%
If CInt(p_progress_status(1)) = 006 And (session("depart_code") = p_depart_dep or session("depart_code") = p_depart_dep2 or Cstr(p_rsch_a(1, 1)) = Cstr(session("User_Number"))) Then
If document_work_flow then
%>
<%
End if
End if
%>
<%
If session("depart_code") = p_depart_dep or session("depart_code") = p_depart_dep2 or session("depart_code") = 0 or ((session("depart_code") = 17 or session("depart_code") = 19) and session("teamplace") = "3") Then
%>
<%
End if
%>
|
<% end if %>
<%
Else
%>
|
<%
End If
%>