1093 lines
41 KiB
Plaintext
1093 lines
41 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
|
|
<%
|
|
dim edit_history_Log() '계약보고서 수정(''계약액 또는 샘플사이즈) 로그
|
|
|
|
set rsp = server.CreateObject("ADODB.RECORDSET")
|
|
set rsa = server.CreateObject("ADODB.RECORDSET")
|
|
|
|
d_no = request("d_no")
|
|
x = request("x")
|
|
view_chk= request("view_chk")
|
|
|
|
'''인쇄여부 표시
|
|
if x = "7" then
|
|
query = "update 문서내용 set print_chk = 'Yes', print_cnt = print_cnt + 1 where 문서번호='" & d_no & "' "
|
|
adoConn.Execute query
|
|
end if
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM 문서내용 as a "
|
|
query = query & " INNER JOIN Document as b on a.문서번호 = b.d_no "
|
|
query = query & "WHERE a.문서번호='" & d_no & "' "
|
|
if x = "99" then
|
|
elseif session("admin_ip") = Session("USERIP") then
|
|
else
|
|
query = query & " AND b.d_delok = 'N' "
|
|
end if
|
|
'Response.Write query & "<BR>"
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
|
|
if rsc("target1") = "Project 계약보고서" then '계약보고서
|
|
tmp_span = "3"
|
|
tmp_width = "80%"
|
|
else '완료보고서
|
|
tmp_span = "1"
|
|
tmp_width = "30%"
|
|
end if
|
|
|
|
p_sn = rsc("p_sn")
|
|
|
|
query = "SELECT p_sub_type, p_method_cd FROM T_PROJECT_METHOD "
|
|
query = query & "WHERE p_sn='" & p_sn & "' "
|
|
query = query & "AND p_child_sn = '"& rsc("p_child_sn") &"' "
|
|
|
|
rsp.Open query, adoConn, 1
|
|
'Response.Write query & "<BR>"
|
|
|
|
tmp_method_cd = ""
|
|
if rsp.RecordCount > 0 Then
|
|
p_sub_type = rsp("p_sub_type")
|
|
|
|
If p_sub_type = "C" Then
|
|
tmp_method_cd = rsp("p_method_cd")
|
|
End if
|
|
end If
|
|
rsp.close
|
|
|
|
d_order_cnt = int(rsc("d_order_cnt"))
|
|
|
|
tmp_txt = split(rsc("target99"), "^^")
|
|
tmp_8 = split(rsc("target100"), "^^")
|
|
p_memo_etc = rsc("target10")
|
|
if instr(1,tmp_txt(0), "반려") then
|
|
tmp_txt1 = tmp_txt(0)
|
|
elseif instr(1,tmp_txt(0), "<BR>") then
|
|
tmp_t1 = split(tmp_txt(0), "<BR>")
|
|
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt1 = tmp_txt(0)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(1), "반려") then
|
|
tmp_txt2 = tmp_txt(1)
|
|
elseif instr(1,tmp_txt(1), "<BR>") then
|
|
tmp_t2 = split(tmp_txt(1), "<BR>")
|
|
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt2 = tmp_txt(1)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(2), "반려") then
|
|
tmp_txt3 = tmp_txt(2)
|
|
elseif instr(1,tmp_txt(2), "<BR>") then
|
|
tmp_t3 = split(tmp_txt(2), "<BR>")
|
|
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt3 = tmp_txt(2)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(3), "반려") then
|
|
tmp_txt4 = tmp_txt(3)
|
|
elseif instr(1,tmp_txt(3), "<BR>") then
|
|
tmp_t4 = split(tmp_txt(3), "<BR>")
|
|
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt4 = tmp_txt(3)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(4), "반려") then
|
|
tmp_txt5 = tmp_txt(4)
|
|
elseif instr(1,tmp_txt(4), "<BR>") then
|
|
tmp_t5 = split(tmp_txt(4), "<BR>")
|
|
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt5 = tmp_txt(4)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(5), "반려") then
|
|
tmp_txt11 = tmp_txt(5)
|
|
elseif instr(1,tmp_txt(5), "<BR>") then
|
|
tmp_t11 = split(tmp_txt(5), "<BR>")
|
|
tmp_txt11 = "<img src='/images/sign/" & tmp_t11(0) & "_" & tmp_t11(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt11 = tmp_txt(5)
|
|
end if
|
|
|
|
if instr(1,tmp_txt(6), "반려") then
|
|
tmp_txt12 = tmp_txt(6)
|
|
elseif instr(1,tmp_txt(6), "<BR>") then
|
|
tmp_t12 = split(tmp_txt(6), "<BR>")
|
|
tmp_txt12 = "<img src='/images/sign/" & tmp_t12(0) & "_" & tmp_t12(2) & ".jpg' border=0 width=40 height=40>"
|
|
else
|
|
tmp_txt12 = tmp_txt(6)
|
|
end if
|
|
|
|
tmp_txt6 = tmp_8(0)
|
|
tmp_txt7 = tmp_8(1)
|
|
tmp_txt8 = tmp_8(2)
|
|
tmp_txt9 = tmp_8(3)
|
|
tmp_txt10 = tmp_8(4)
|
|
tmp_txt13 = tmp_8(5)
|
|
tmp_txt14 = tmp_8(6)
|
|
|
|
|
|
|
|
|
|
Dim research_count
|
|
research_count = 0
|
|
|
|
''' Response.Write p_sub_type & "<BR>"
|
|
|
|
'프로젝트 기본 정보 가져오기
|
|
If p_sub_type = "M" then
|
|
query = " SELECT p_sn, p_sn+'_M' as p_child_sn, PB.p_cli_company_cd as p_cli_company_cd, PB.p_cli_per_cd as p_cli_per_cd, "
|
|
query = query & " p_state, p_subject, p_cli_company_nm, CP.p_cli_depart as p_cli_depart, "
|
|
query = query & " p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, "
|
|
query = query & " PB.p_client_type_cd as p_client_type_cd, p_cont_cost, p_decide_date, "
|
|
query = query & " p_con_date_st, p_con_date_end, p_export_range, p_category, "
|
|
query = query & " p_memo, pb.p_depart_dep as p_depart_dep, PB.p_input_user as p_rsch "
|
|
query = query & " FROM "
|
|
query = query & " T_PROJECT_BASE PB INNER JOIN V_CLIENT_COMP CC ON PB.p_cli_company_cd = CC.p_cli_company_cd "
|
|
query = query & " INNER JOIN V_CLIENT_PERSON CP ON PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.P_CLI_PER_CD = CP.P_CLI_PER_CD "
|
|
query = query & " INNER JOIN T_CLIENT_TYPE_CD CTC ON PB.p_client_type_cd = CTC.p_client_type_cd "
|
|
query = query & " WHERE p_sn = '"&p_sn& "' "
|
|
else
|
|
query = " SELECT PB.p_sn, PM.p_child_sn "
|
|
query = query & " , PB.p_cli_company_cd as p_cli_company_cd "
|
|
query = query & " , PB.p_cli_per_cd as p_cli_per_cd "
|
|
query = query & " , p_state "
|
|
query = query & " , PM.p_subject "
|
|
query = query & " , p_cli_company_nm "
|
|
query = query & " , CP.p_cli_depart as p_cli_depart "
|
|
query = query & " , p_cli_per_nm "
|
|
query = query & " , p_cli_per_com_tel "
|
|
query = query & " , p_cli_per_tel "
|
|
query = query & " , p_cli_per_email "
|
|
query = query & " , PB.p_client_type_cd as p_client_type_cd "
|
|
query = query & " , PM.p_cont_cost "
|
|
query = query & " , PM.p_decide_date "
|
|
query = query & " , PM.p_con_date_st "
|
|
query = query & " , PM.p_con_date_end "
|
|
query = query & " , PM.p_export_range "
|
|
query = query & " , PM.p_category "
|
|
query = query & " , PB.p_memo "
|
|
query = query & " , pb.p_depart_dep as p_depart_dep "
|
|
query = query & " , PB.p_input_user "
|
|
query = query & " , PM.p_sv_1 "
|
|
query = query & " , case when isnull(PM.p_rsch_1_c,'') <> '' then PM.p_rsch_1_c else case when ISNULL(PM.p_rsch_1_b, '') <> '' then PM.p_rsch_1_b else PM.p_rsch_1_a end end as p_rsch "
|
|
query = query & " FROM T_PROJECT_BASE PB "
|
|
query = query & " left outer JOIN T_PROJECT_METHOD PM "
|
|
query = query & " ON PB.p_sn = PM.p_sn "
|
|
query = query & " left outer JOIN V_CLIENT_COMP CC "
|
|
query = query & " ON PB.p_cli_company_cd = CC.p_cli_company_cd "
|
|
query = query & " left outer JOIN V_CLIENT_PERSON CP "
|
|
query = query & " ON PB.p_cli_company_cd = CP.p_cli_company_cd "
|
|
query = query & " AND PB.P_CLI_PER_CD = CP.P_CLI_PER_CD "
|
|
query = query & " left outer JOIN T_CLIENT_TYPE_CD CTC "
|
|
query = query & " ON PB.p_client_type_cd = CTC.p_client_type_cd "
|
|
query = query & " WHERE PB.p_sn = '" & p_sn & "' "
|
|
query = query & " AND PM.p_sub_type = 'C' "
|
|
query = query & " AND PM.p_child_sn = '"& rsc("p_child_sn") &"' "
|
|
End if
|
|
|
|
rsp.Open query, adoConn, 1
|
|
|
|
if rsp.RecordCount > 0 Then
|
|
p_sn = rsp("p_sn")
|
|
p_child_sn_tmp = rsc("p_child_sn")
|
|
p_cli_company_cd = rsp("p_cli_company_cd")
|
|
p_cli_per_cd = rsp("p_cli_per_cd")
|
|
|
|
p_state = rsp("p_state")
|
|
p_subject = rsp("p_subject")
|
|
p_cli_company_nm = rsp("p_cli_company_nm")
|
|
p_cli_depart = rsp("p_cli_depart")
|
|
p_cli_per_nm = rsp("p_cli_per_nm")
|
|
p_cli_per_com_tel = rsp("p_cli_per_com_tel")
|
|
p_cli_per_tel = rsp("p_cli_per_tel")
|
|
p_cli_per_email = rsp("p_cli_per_email")
|
|
p_client_type_cd = rsp("p_client_type_cd")
|
|
p_depart_dep = rsp("p_depart_dep")
|
|
p_decide_date = rsp("p_decide_date")
|
|
p_con_date_st = rsp("p_con_date_st")
|
|
p_con_date_end = rsp("p_con_date_end")
|
|
p_export_range = rsp("p_export_range")
|
|
p_category = rsp("p_category")
|
|
p_memo = rsp("p_memo")
|
|
|
|
'예상 계약액 ,수정
|
|
if rsp("p_cont_cost") <> "" Then
|
|
budget = rsp("p_cont_cost")
|
|
tmp_len = len(rsp("p_cont_cost"))
|
|
for i = 1 to int(tmp_len)
|
|
if i mod 3 = 1 and i <> 1 then
|
|
p_cont_cost = "," & p_cont_cost
|
|
end if
|
|
p_cont_cost = left(right(rsp("p_cont_cost"),i), 1) & p_cont_cost
|
|
next
|
|
Else
|
|
p_cont_cost = 0
|
|
budget = 0
|
|
end If
|
|
|
|
Dim p_category_arr(19)
|
|
If p_category <> "" Then
|
|
temp_category_arr = Split(p_category, ",")
|
|
|
|
If UBound(temp_category_arr)-1 > 0 Then
|
|
For i = 0 To UBound(temp_category_arr)-1 Step 1
|
|
p_category_arr(temp_category_arr(i)-1) = temp_category_arr(i)
|
|
Next
|
|
Else
|
|
If UBound(temp_category_arr) = 1 Then
|
|
If Trim(temp_category_arr(0)) <> "" Then
|
|
p_category_arr(temp_category_arr(0)-1) = temp_category_arr(0)
|
|
End if
|
|
End if
|
|
End if
|
|
End if
|
|
|
|
|
|
Dim owner_depart_name
|
|
Dim owner_emp_name_1 '연구원
|
|
Dim owner_emp_name_2 'SV
|
|
owner_emp_name_1 = rsc("login_이름")
|
|
|
|
|
|
' If p_sub_type = "M" then '프로젝트가 M인경우...
|
|
' q = "select p_sv_1, p_name from T_PROJECT_METHOD as A left outer join person as B on A.p_sv_1 = B.p_no where p_sn = '" & p_sn & "' and p_sub_type = 'M'"
|
|
' adors.Open q, adoConn, 1
|
|
' response.write q
|
|
' response.write adors.RecordCount
|
|
' if adors.RecordCount > 0 Then
|
|
' For i = 1 To adors.RecordCount
|
|
' If i = 1 Then
|
|
' owner_emp_name_2 = adors("p_name")
|
|
' Else
|
|
' owner_emp_name_2 = owner_emp_name_2 & ", " & adors("p_name")
|
|
' End if
|
|
' adors.moveNext
|
|
' next
|
|
' End if
|
|
' adors.Close
|
|
' Else
|
|
' q = "select p_no, p_name from person where p_no = '" & rsp("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
|
|
' End if
|
|
end If
|
|
rsp.close
|
|
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<title><%=GNB_TITLE%></title>
|
|
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
|
</head>
|
|
|
|
<script>
|
|
function prtit()
|
|
{
|
|
/* var prj_code = document.frm_it.prj_code.value;
|
|
var user_name = document.frm_it.user_name.value;
|
|
var url = "./print_ok.asp?prj_code=" + prj_code +"&user_name=" + user_name + "&gubun=it"
|
|
window.open(url ,"",'left=10,top=10,width=10,height=10,scrollbars=0,resizable=0, STATBAR=0, menubar=no, toolbar=NO')
|
|
*/
|
|
factory.printing.header = ""
|
|
factory.printing.footer = ""
|
|
factory.printing.leftMargin = 1//0.75
|
|
factory.printing.topMargin = 13//1.5
|
|
factory.printing.rightMargin = 1
|
|
factory.printing.bottomMargin = 13
|
|
factory.printing.portrait = true
|
|
factory.printing.Print(false, window)//바로인쇄
|
|
|
|
// factory.printing.Preview(); //화면으로 먼저 보기(미리보기)
|
|
//self.close();
|
|
//document.pms.action = 'project_report.asp';
|
|
//document.pms.submit();
|
|
}
|
|
|
|
function prtie()
|
|
{
|
|
window.print();
|
|
window.close();
|
|
}
|
|
|
|
function win_close() {
|
|
self.close();
|
|
}
|
|
|
|
function win_print() {
|
|
document.pms.action = 'project_report_2014.asp?x=7';
|
|
document.pms.submit();
|
|
}
|
|
|
|
function subit(a, b)
|
|
{
|
|
var tmp_txt;
|
|
var approve_pass;
|
|
|
|
if (a == 1)
|
|
{
|
|
tmp_txt = "부재자 ";
|
|
approve_pass = 1;
|
|
}
|
|
else
|
|
{
|
|
tmp_txt = "";
|
|
}
|
|
|
|
if (confirm(tmp_txt + "승인을 하시겠습니까?"))
|
|
{
|
|
document.pms.action = "project_report_ok_2014.asp?approve_pass="+approve_pass;
|
|
document.pms.action = "project_report_ok_2014.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b;
|
|
document.pms.submit();
|
|
}
|
|
}
|
|
|
|
function backit(a)
|
|
{
|
|
alert("사유를 작성해 주세요");
|
|
|
|
var f = document.pms;
|
|
|
|
var url = "";
|
|
if(f.p_sub_type.value == "M"){
|
|
url = "project_reason_2014.asp?d_no="+a+"&p_sn="+f.p_sn.value+'&p_sub_type=M';
|
|
}else{
|
|
url = "project_reason_2014.asp?d_no="+a+"&p_sn="+f.p_sn.value+'&p_sub_type=C&p_method_cd='+f.p_method_cd1.value;
|
|
}
|
|
|
|
window.open(url,'','left=0,top=0,width=400,height=150,scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
function openit(z)
|
|
{
|
|
var url = '/ess/direct_cost_print.asp?p_sn=' + z;
|
|
var tmp_height = 800;
|
|
var tmp_width = 950;
|
|
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
|
|
}
|
|
|
|
function projectDetail(z,x,y,v){
|
|
var url = '/project/project_list2_dep_2014.asp?p_sn=' + z;
|
|
var tmp_width = 1400;
|
|
var tmp_height = 800;
|
|
//alert("p_sub_type : "+x);
|
|
if (x == "M")
|
|
{
|
|
url = url + "&p_sub_type=" + x;
|
|
}else{
|
|
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
|
}
|
|
|
|
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes');
|
|
}
|
|
</script>
|
|
|
|
<body topmargin="10" leftmargin="10" <% if x = "7" then %> onLoad="prtie()" <% end if %>>
|
|
|
|
<form name="pms" method="post">
|
|
|
|
<input type="hidden" name="d_no" value="<%=d_no%>">
|
|
|
|
<%if x = "99" then%>
|
|
<!-- #include file = "inc_delreason.asp" -->
|
|
<%end if '''if x = "99" then%>
|
|
|
|
<%
|
|
if (cint(print_type) <> 2 AND x <> "7") and (d_order_cnt = 99 or d_order_cnt = 77) and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
|
%>
|
|
<!-- #include file = "inc_print.asp" -->
|
|
<%end if%>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td >
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><img src="/images/approval/docbg_top.jpg"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
|
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td colspan="5" style="padding:0 0 10 0">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="255"><img src="/images/approval/doc_stit17.jpg"></td>
|
|
<td>
|
|
<%
|
|
'### 완료보고서(x=2)일 땐 결재를 하지 않음
|
|
'if x = "1" then
|
|
%>
|
|
<!-- #include file = "inc_project_approval.asp" -->
|
|
<%
|
|
'end if
|
|
%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
<%
|
|
tmp_2 = split(rsc("target2"), "^^")
|
|
tmp_3 = split(rsc("target3"), "^^")
|
|
tmp_4 = split(rsc("target4"), "^^")
|
|
tmp_5 = split(rsc("target5"), "^^")
|
|
tmp_6 = split(rsc("target6"), "^^")
|
|
tmp_7 = split(rsc("target7"), "^^")
|
|
%>
|
|
<input type="hidden" name="depart" value="<%=tmp_2(0)%>">
|
|
<input type="hidden" name="writedate" value="<%=tmp_2(1)%>">
|
|
<tr>
|
|
<td colspan="2" width="18%" style="padding:7 0 7 20"><b>부서명</b> : <%=tmp_2(0)%></td>
|
|
<td width="32%" style="padding:7 0 7 20"><b>담당연구원 </b> : <%=owner_emp_name_1%></b></td>
|
|
<td colspan="2" width="50%" class="tahoma" align="right">작성일자 : <%=tmp_2(1)%></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="5" bgcolor="#d8d8d8" height="1"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="5" height="10"></td>
|
|
</tr>
|
|
|
|
<tr height="26">
|
|
<td width="28%" align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">프로젝트 번호</td>
|
|
<td width="72%" colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<b class="tahoma_blue"><%=p_child_sn_tmp%></b>
|
|
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
|
<input type="hidden" name="p_sub_type" value="<%=p_sub_type %>">
|
|
<input type="hidden" name="p_method_cd" value="<%=tmp_method_cd %>">
|
|
<input type="hidden" name="p_child_sn" value="<%=rsc("p_child_sn") %>">
|
|
<input type="hidden" name="p_state" value="<%=p_state %>">
|
|
<input type="hidden" name="p_depart_dep" value="<%=p_depart_dep %>">
|
|
<input type="hidden" name="p_memo" value="<%=p_memo %>">
|
|
<img src="/images/common/btn_projectdetail_view.JPG" align="absmiddle" style="cursor:pointer"
|
|
onClick="projectDetail('<%=p_sn%>','<%=p_sub_type%>','<%=tmp_method_cd%>','<%=rsc("p_child_sn")%>')"/> <!-- 프로젝트 상세 보기 -->
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">프로젝트 명</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<%=p_subject%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">클라이언트 회사</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<%=p_cli_company_nm%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">계약 기간</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<%=p_con_date_st%> ~ <%=p_con_date_end%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">계약 일자</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<%=p_decide_date%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">계약액</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<b class="tahoma"><%=p_cont_cost%>원</b> (<font class="tahoma_red">VAT 별도</font>)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">전체직접비(연구+실사) 예산(비율)</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px; border-bottom: 0px;">
|
|
<%
|
|
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' "
|
|
If p_sub_type = "C" Then
|
|
q = q + " and p_child_sn = '" & rsc("p_child_sn") & "' "
|
|
Else
|
|
q = q + " and p_child_sn like '" & p_sn & "_M%' "
|
|
End if
|
|
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' "
|
|
If p_sub_type = "C" Then
|
|
q = q + " and p_child_sn = '" & rsc("p_child_sn") & "' "
|
|
Else
|
|
q = q + " and p_child_sn like '" & p_sn & "_M%' "
|
|
End if
|
|
q = q + " ) as T "
|
|
|
|
rsp.Open q, adoConn, 1
|
|
|
|
tmp_total_money = ""
|
|
tmp_total_rate = ""
|
|
|
|
if rsp.RecordCount = 1 Then
|
|
if rsp("total_money") <> "" then
|
|
tmp_len = len(rsp("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(rsp("total_money"),i), 1) & tmp_total_money
|
|
Next
|
|
|
|
tmp_total_rate = formatnumber((tmp_total_money / p_cont_cost) * 100, 2)
|
|
Else
|
|
tmp_total_money = "0"
|
|
tmp_total_rate = "0"
|
|
end If
|
|
%>
|
|
<b class="tahoma"><%=tmp_total_money%>원</b> (<font class="tahoma_red">VAT 별도</font>), 비율 : <b class="tahoma_blue"> <%=tmp_total_rate%>%</b>
|
|
<input type="hidden" name="esticostprop" value="<%=tmp_total_rate%>">
|
|
<%
|
|
end if
|
|
rsp.Close
|
|
%>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="tit_left" style="line-height: 26px; border-bottom: 0px;">용역범위</td>
|
|
<td colspan="4" class="tit5" style="padding-left: 10px;">
|
|
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '011' "
|
|
rsp.Open q, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
for i = 1 to rsp.RecordCount
|
|
if p_export_range = rsp("c_common_code") then
|
|
%>
|
|
<%=rsp("c_code_name")%>
|
|
<%
|
|
end if
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close %>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="5" height="20"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="padding:0px;" colspan="5">
|
|
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr height="30px;">
|
|
<td align="center" class="tit_left" width=100>조사방법</td>
|
|
<td align="center" class="tit_left" style="display:none;">실사 직접비 예산</td>
|
|
<td align="center" class="tit_left">조사코드</td>
|
|
<td align="center" class="tit_left">담당SV</td>
|
|
<td align="center" class="tit_left">조사지역</td>
|
|
<td align="center" class="tit_left">조사대상</td>
|
|
<td align="center" class="tit_left">표본수</td>
|
|
<td align="center" class="tit_left">조사기간</td>
|
|
<td align="center" class="tit_left">조사분류</td>
|
|
<td align="center" class="tit_left tit_right">실사수행</td>
|
|
</tr>
|
|
<!-- loop start -->
|
|
<%
|
|
'조사방법 가져오기
|
|
query = " SELECT PMC.p_method_cd, p_method_nm, p_sur_area, p_sur_target, p_sample, p_research_date_st, p_research_date_end, p_sur_part, p_field_process, p_child_sn "
|
|
query = query & " ,p_rsch_dept, p_field_dept, p_is_dept, p_supp_dept "
|
|
query = query & " ,p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a "
|
|
query = query & " ,p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b "
|
|
query = query & " ,p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c "
|
|
query = query & " ,p_sv_1, p_sv_2, p_sv_3, p_sv_4 "
|
|
query = query & " ,p_code_1, p_code_2, p_code_3, p_code_4 "
|
|
query = query & " ,p_verify_1, p_verify_2, p_verify_3, p_verify_4 "
|
|
query = query & " ,p_dp_1, p_dp_2, p_dp_3, p_dp_4 "
|
|
query = query & " ,p_it_1, p_it_2, p_it_3, p_it_4 "
|
|
query = query & " ,p_supp_1, p_supp_2, p_supp_3, p_supp_4 "
|
|
query = query & " ,p_rsch_date_st, p_rsch_date_end, p_field_date_st, p_field_date_end, p_code_date_st, p_code_date_end "
|
|
query = query & " ,p_verify_date_st, p_verify_date_end, p_dp_date_st, p_dp_date_end, p_it_date_st, p_it_date_end "
|
|
query = query & " ,p_premeet_date, p_premeet_time, p_premeet_place "
|
|
query = query & " ,p_ot_date, p_ot_time, p_ot_place, p_sur_memo, p_memo, p_progress_status "
|
|
query = query & " FROM T_PROJECT_METHOD PM INNER JOIN T_PROJECT_METHOD_CD PMC ON PM.p_method_cd = PMC.p_method_cd "
|
|
query = query & " WHERE p_method_yn = 'y' "
|
|
query = query & " AND p_sn = '" & p_sn & "'"
|
|
|
|
If p_sub_type = "C" Then
|
|
query = query & " AND PM.p_sub_type = 'C' "
|
|
query = query & " AND PM.p_method_cd = '" & tmp_method_cd & "' "
|
|
query = query & " AND PM.p_child_sn = '" & rsc("p_child_sn") & "' "
|
|
Else
|
|
query = query & " AND PM.p_sub_type = 'M' "
|
|
End If
|
|
|
|
if Request.ServerVariables("REMOTE_ADDR") = session("admin_ip") then
|
|
'Response.Write query & "<BR>"
|
|
end if
|
|
rsa.Open query, adoConn, 1
|
|
|
|
research_count = rsa.RecordCount
|
|
%>
|
|
<input type="hidden" name="research_count" style="width:150;" value="<%=research_count %>">
|
|
<%
|
|
Dim p_method_cd()
|
|
Dim p_child_sn()
|
|
|
|
p_index = ""
|
|
Dim p_sur_area()
|
|
Dim p_sur_target()
|
|
Dim p_sample()
|
|
Dim p_research_date_st()
|
|
Dim p_research_date_end()
|
|
Dim p_sur_part()
|
|
Dim p_field_process()
|
|
Dim p_rsch_dept()
|
|
Dim p_field_dept()
|
|
Dim p_is_dept()
|
|
Dim p_supp_dept()
|
|
Dim p_rsch_1_a()
|
|
Dim p_rsch_2_a()
|
|
Dim p_rsch_3_a()
|
|
Dim p_rsch_4_a()
|
|
Dim p_rsch_1_b()
|
|
Dim p_rsch_2_b()
|
|
Dim p_rsch_3_b()
|
|
Dim p_rsch_4_b()
|
|
Dim p_rsch_1_c()
|
|
Dim p_rsch_2_c()
|
|
Dim p_rsch_3_c()
|
|
Dim p_rsch_4_c()
|
|
Dim p_sv_1()
|
|
Dim p_sv_2()
|
|
Dim p_sv_3()
|
|
Dim p_sv_4()
|
|
Dim p_code_1()
|
|
Dim p_code_2()
|
|
Dim p_code_3()
|
|
Dim p_code_4()
|
|
Dim p_verify_1()
|
|
Dim p_verify_2()
|
|
Dim p_verify_3()
|
|
Dim p_verify_4()
|
|
Dim p_dp_1()
|
|
Dim p_dp_2()
|
|
Dim p_dp_3()
|
|
Dim p_dp_4()
|
|
Dim p_it_1()
|
|
Dim p_it_2()
|
|
Dim p_it_3()
|
|
Dim p_it_4()
|
|
Dim p_supp_1()
|
|
Dim p_supp_2()
|
|
Dim p_supp_3()
|
|
Dim p_supp_4()
|
|
Dim p_rsch_date_st()
|
|
Dim p_rsch_date_end()
|
|
Dim p_field_date_st()
|
|
Dim p_field_date_end()
|
|
Dim p_code_date_st()
|
|
Dim p_code_date_end()
|
|
Dim p_verify_date_st()
|
|
Dim p_verify_date_end()
|
|
Dim p_dp_date_st()
|
|
Dim p_dp_date_end()
|
|
Dim p_it_date_st()
|
|
Dim p_it_date_end()
|
|
Dim p_premeet_date()
|
|
Dim p_premeet_time()
|
|
Dim p_premeet_place()
|
|
Dim p_ot_date()
|
|
Dim p_ot_time()
|
|
Dim p_ot_place()
|
|
Dim p_progress_status()
|
|
Dim p_sur_memo()
|
|
|
|
ReDim p_method_cd(research_count, 2)
|
|
ReDim p_child_sn(research_count)
|
|
|
|
ReDim p_sur_area(research_count)
|
|
ReDim p_sur_target(research_count)
|
|
ReDim p_sample(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_field_dept(research_count)
|
|
ReDim p_is_dept(research_count)
|
|
ReDim p_supp_dept(research_count)
|
|
ReDim p_rsch_1_a(research_count)
|
|
ReDim p_rsch_2_a(research_count)
|
|
ReDim p_rsch_3_a(research_count)
|
|
ReDim p_rsch_4_a(research_count)
|
|
ReDim p_rsch_1_b(research_count)
|
|
ReDim p_rsch_2_b(research_count)
|
|
ReDim p_rsch_3_b(research_count)
|
|
ReDim p_rsch_4_b(research_count)
|
|
ReDim p_rsch_1_c(research_count)
|
|
ReDim p_rsch_2_c(research_count)
|
|
ReDim p_rsch_3_c(research_count)
|
|
ReDim p_rsch_4_c(research_count)
|
|
ReDim p_sv_1(research_count)
|
|
ReDim p_sv_2(research_count)
|
|
ReDim p_sv_3(research_count)
|
|
ReDim p_sv_4(research_count)
|
|
ReDim p_code_1(research_count)
|
|
ReDim p_code_2(research_count)
|
|
ReDim p_code_3(research_count)
|
|
ReDim p_code_4(research_count)
|
|
ReDim p_verify_1(research_count)
|
|
ReDim p_verify_2(research_count)
|
|
ReDim p_verify_3(research_count)
|
|
ReDim p_verify_4(research_count)
|
|
ReDim p_dp_1(research_count)
|
|
ReDim p_dp_2(research_count)
|
|
ReDim p_dp_3(research_count)
|
|
ReDim p_dp_4(research_count)
|
|
ReDim p_it_1(research_count)
|
|
ReDim p_it_2(research_count)
|
|
ReDim p_it_3(research_count)
|
|
ReDim p_it_4(research_count)
|
|
ReDim p_supp_1(research_count)
|
|
ReDim p_supp_2(research_count)
|
|
ReDim p_supp_3(research_count)
|
|
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_code_date_st(research_count)
|
|
ReDim p_code_date_end(research_count)
|
|
ReDim p_verify_date_st(research_count)
|
|
ReDim p_verify_date_end(research_count)
|
|
ReDim p_dp_date_st(research_count)
|
|
ReDim p_dp_date_end(research_count)
|
|
ReDim p_it_date_st(research_count)
|
|
ReDim p_it_date_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_status(research_count)
|
|
ReDim p_sur_memo(research_count)
|
|
|
|
if research_count > 0 then
|
|
for i = 1 to research_count
|
|
'p_sub_type
|
|
'p_child_sn
|
|
|
|
p_method_cd(i, 1) = rsa("p_method_cd")
|
|
p_method_cd(i, 2) = rsa("p_method_nm")
|
|
p_child_sn(i) = rsa("p_child_sn")
|
|
p_sur_area(i) = rsa("p_sur_area")
|
|
p_sur_target(i) = rsa("p_sur_target")
|
|
p_sample(i) = rsa("p_sample")
|
|
p_research_date_st(i) = rsa("p_research_date_st")
|
|
p_research_date_end(i) = rsa("p_research_date_end")
|
|
p_sur_part(i) = rsa("p_sur_part")
|
|
p_field_process(i) = rsa("p_field_process")
|
|
p_rsch_dept(i) = rsa("p_rsch_dept")
|
|
p_field_dept(i) = rsa("p_field_dept")
|
|
p_is_dept(i) = rsa("p_is_dept")
|
|
p_supp_dept(i) = rsa("p_supp_dept")
|
|
p_rsch_1_a(i) = rsa("p_rsch_1_a")
|
|
p_rsch_2_a(i) = rsa("p_rsch_2_a")
|
|
p_rsch_3_a(i) = rsa("p_rsch_3_a")
|
|
p_rsch_4_a(i) = rsa("p_rsch_4_a")
|
|
p_rsch_1_b(i) = rsa("p_rsch_1_b")
|
|
p_rsch_2_b(i) = rsa("p_rsch_2_b")
|
|
p_rsch_3_b(i) = rsa("p_rsch_3_b")
|
|
p_rsch_4_b(i) = rsa("p_rsch_4_b")
|
|
p_rsch_1_c(i) = rsa("p_rsch_1_c")
|
|
p_rsch_2_c(i) = rsa("p_rsch_2_c")
|
|
p_rsch_3_c(i) = rsa("p_rsch_3_c")
|
|
p_rsch_4_c(i) = rsa("p_rsch_4_c")
|
|
p_sv_1(i) = rsa("p_sv_1")
|
|
p_sv_2(i) = rsa("p_sv_2")
|
|
p_sv_3(i) = rsa("p_sv_3")
|
|
p_sv_4(i) = rsa("p_sv_4")
|
|
p_code_1(i) = rsa("p_code_1")
|
|
p_code_2(i) = rsa("p_code_2")
|
|
p_code_3(i) = rsa("p_code_3")
|
|
p_code_4(i) = rsa("p_code_4")
|
|
p_verify_1(i) = rsa("p_verify_1")
|
|
p_verify_2(i) = rsa("p_verify_2")
|
|
p_verify_3(i) = rsa("p_verify_3")
|
|
p_verify_4(i) = rsa("p_verify_4")
|
|
p_dp_1(i) = rsa("p_dp_1")
|
|
p_dp_2(i) = rsa("p_dp_2")
|
|
p_dp_3(i) = rsa("p_dp_3")
|
|
p_dp_4(i) = rsa("p_dp_4")
|
|
p_it_1(i) = rsa("p_it_1")
|
|
p_it_2(i) = rsa("p_it_2")
|
|
p_it_3(i) = rsa("p_it_3")
|
|
p_it_4(i) = rsa("p_it_4")
|
|
p_supp_1(i) = rsa("p_supp_1")
|
|
p_supp_2(i) = rsa("p_supp_2")
|
|
p_supp_3(i) = rsa("p_supp_3")
|
|
p_supp_4(i) = rsa("p_supp_4")
|
|
p_rsch_date_st(i) = rsa("p_rsch_date_st")
|
|
p_rsch_date_end(i) = rsa("p_rsch_date_end")
|
|
p_field_date_st(i) = rsa("p_field_date_st")
|
|
p_field_date_end(i) = rsa("p_field_date_end")
|
|
p_code_date_st(i) = rsa("p_code_date_st")
|
|
p_code_date_end(i) = rsa("p_code_date_end")
|
|
p_verify_date_st(i) = rsa("p_verify_date_st")
|
|
p_verify_date_end(i) = rsa("p_verify_date_end")
|
|
p_dp_date_st(i) = rsa("p_dp_date_st")
|
|
p_dp_date_end(i) = rsa("p_dp_date_end")
|
|
p_it_date_st(i) = rsa("p_it_date_st")
|
|
p_it_date_end(i) = rsa("p_it_date_end")
|
|
p_premeet_date(i) = rsa("p_premeet_date")
|
|
p_premeet_time(i) = rsa("p_premeet_time")
|
|
p_premeet_place(i) = rsa("p_premeet_place")
|
|
p_ot_date(i) = rsa("p_ot_date")
|
|
p_ot_time(i) = rsa("p_ot_time")
|
|
p_ot_place(i) = rsa("p_ot_place")
|
|
p_sur_memo(i) = rsa("p_sur_memo")
|
|
|
|
If rsa("p_progress_status") <> "" Then
|
|
p_progress_status(i) = rsa("p_progress_status")
|
|
Else
|
|
p_progress_status(i) = "001"
|
|
End if
|
|
|
|
%>
|
|
<tr bgcolor="<%=tmp_bgcolor%>">
|
|
<td align="left" class="tit5" style="padding-left: 10px;"> <!-- 조사방법 -->
|
|
<%=rsa("p_method_nm")%>
|
|
<input type="hidden" name="p_method_cd<%=i %>" value="<%=p_method_cd(i, 1)%>" readonly>
|
|
<input type="hidden" name="p_child_sn<%=i %>" value="<%=p_child_sn(i)%>" readonly>
|
|
<input type="hidden" name="p_progress_status<%=i %>" value="<%=p_progress_status(i)%>">
|
|
</td>
|
|
<td align="center" class="tit5" style="display:none;"> <!-- 직접비 예산 -->
|
|
<%
|
|
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(i) & "' "
|
|
|
|
rsp.Open q, adoConn, 1
|
|
|
|
tmp_total_money = ""
|
|
|
|
if rsp.RecordCount = 1 Then
|
|
if rsp("total_money") <> "" then
|
|
tmp_len = len(rsp("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(rsp("total_money"),j), 1) & tmp_total_money
|
|
Next
|
|
Else
|
|
tmp_total_money = "0"
|
|
end If
|
|
%>
|
|
<b class="tahoma"><%=tmp_total_money%>원</b>
|
|
<%
|
|
end if
|
|
rsp.Close
|
|
%>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 조사코드 -->
|
|
<%=p_child_sn(i)%>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 담당SV -->
|
|
<%
|
|
q = "select p_no, p_name from person where p_no = '" & p_sv_1(i) & "' "
|
|
adors.Open q, adoConn, 1
|
|
|
|
if adors.RecordCount > 0 Then
|
|
%>
|
|
<%=adors("p_name") %>
|
|
<%
|
|
end if
|
|
adors.Close
|
|
%>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 조사지역 -->
|
|
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '012' "
|
|
rsp.Open q, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
for j = 1 to rsp.RecordCount
|
|
if p_sur_area(i) = rsp("c_common_code") then
|
|
%>
|
|
<%=rsp("c_code_name")%>
|
|
<%
|
|
end if
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close %>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 조사대상 -->
|
|
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '013' "
|
|
rsp.Open q, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
for j = 1 to rsp.RecordCount
|
|
if p_sur_target(i) = rsp("c_common_code") then
|
|
%>
|
|
<%=rsp("c_code_name")%>
|
|
<%
|
|
end If
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close %>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 표본수 -->
|
|
<%
|
|
tmp_sample_cnt = ""
|
|
if p_sample(i) <> "" then
|
|
tmp_len = len(p_sample(i))
|
|
for j = 1 to int(tmp_len)
|
|
if j mod 3 = 1 and j <> 1 then
|
|
tmp_sample_cnt = "," & tmp_sample_cnt
|
|
end if
|
|
tmp_sample_cnt = left(right(p_sample(i),j), 1) & tmp_sample_cnt
|
|
Next
|
|
Else
|
|
tmp_sample_cnt = "0"
|
|
end If
|
|
%>
|
|
<%=tmp_sample_cnt%>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 조사기간 -->
|
|
<%=p_research_date_st(i)%> ~ <%=p_research_date_end(i)%>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 조사분류 -->
|
|
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '014' "
|
|
rsp.Open q, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
for j = 1 to rsp.RecordCount
|
|
if p_sur_part(i) = rsp("c_common_code") then
|
|
%>
|
|
<%=rsp("c_code_name")%>
|
|
<%
|
|
end If
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close %>
|
|
</td>
|
|
<td align="center" class="tit5"> <!-- 실사수행 -->
|
|
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '015' "
|
|
rsp.Open q, adoConn, 1
|
|
if rsp.RecordCount > 0 then
|
|
for j = 1 to rsp.RecordCount
|
|
if p_field_process(i) = rsp("c_common_code") then
|
|
%>
|
|
<%=rsp("c_code_name")%>
|
|
<%
|
|
end if
|
|
rsp.MoveNext
|
|
next
|
|
end if
|
|
rsp.Close %>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
rsa.MoveNext
|
|
next
|
|
end if
|
|
rsa.Close
|
|
%>
|
|
<!-- loop end -->
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="5" height="20"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" class="tit2">비고</td>
|
|
<td colspan="4" class="tit5">
|
|
<textarea style="width:99%;height:60;" readonly><%=p_memo_etc %></textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<%if cint(tmp_cnt) > 0 then %>
|
|
<tr>
|
|
<td colspan="5" align="center" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td colspan=3>계약보고서 제출 이후 수정 로그</td>
|
|
</tr>
|
|
<tr >
|
|
<td width="17%" align="center">수정자</td>
|
|
<td width="17%" align="center">수정이유</td>
|
|
<td width="10%" align="center">수정일자</td>
|
|
<td width="15%" align="center">계약액</td>
|
|
<td width="10%" align="center">샘플수</td>
|
|
<td width="15%" align="center">직접비</td>
|
|
<td width="16%" align="center">직접비율</td>
|
|
</tr>
|
|
<%
|
|
for i = 1 to cint(tmp_cnt) %>
|
|
<tr>
|
|
<%for j = 1 to 3%>
|
|
<td align="center"><font class="tahoma"><%=edit_history_Log(i, j)%></font></td>
|
|
<%next%>
|
|
<%for j = 4 to 4%>
|
|
<td align="center"><font class="tahoma">₩ <%=edit_history_Log(i, j)%></font></td>
|
|
<%next%>
|
|
<%for j = 5 to 5%>
|
|
<td align="center"><font class="tahoma"><%=edit_history_Log(i, j)%></font></td>
|
|
<%next%>
|
|
<%for j = 6 to 6%>
|
|
<td align="center"><font class="tahoma">₩ <%=edit_history_Log(i, j)%></font></td>
|
|
<%next%>
|
|
<%for j = 7 to 7%>
|
|
<td align="center"><font class="tahoma"><%=edit_history_Log(i, j)%> %</font></td>
|
|
<%next%>
|
|
</tr>
|
|
<%next%>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%end if%>
|
|
|
|
<!--tr>
|
|
<td colspan="2" style="padding:20 0 0 0" align="center">
|
|
주) 계약액은 부가세별도 금액임
|
|
</td>
|
|
</tr-->
|
|
<tr>
|
|
<td colspan="5" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|
|
<%
|
|
else
|
|
alert4 "해당 데이터를 찾을 수 없습니다"
|
|
end if
|
|
rsc.Close
|
|
%> |