최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

View File

@@ -0,0 +1,660 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<!-- 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">
<%
chk_opt = request("chk_opt")
sc_year = request("sc_year")
sc_month = request("sc_month")
sc_team = request("sc_team")
sc_name = request("sc_name")
sc_method = request("sc_method")
cost_type = request("cost_type")
p_method_cd = trim(request("p_method_cd"))
p_child_sn = request("p_sn")
p_sub_type = request("p_sub_type")
if Instr(p_child_sn,"@") > 0 then
list_p_sn = split(p_child_sn,"@")
p_child_sn = list_p_sn(0)
p_sub_type = list_p_sn(1)
end if
if Instr(p_method_cd,"@") > 0 then
list_p_sn = split(p_method_cd,"@")
p_method_cd = list_p_sn(0)
p_child_sn = list_p_sn(1)
end if
p_sn = trim(request("p_sn"))
p_sn = left(p_sn,7)
Response.Expires = 0
if cost_type = "" then
cost_type = "field"
end if
if cost_type = "field" then
cost_type_name = "<22>ǻ<EFBFBD>"
elseif cost_type = "research" then
cost_type_name = "<22><><EFBFBD><EFBFBD>"
elseif cost_type = "dp" then
cost_type_name = "DP"
elseif cost_type = "all" then
cost_type_name = "<22><>ü"
else
cost_type_name = "<22><><EFBFBD><EFBFBD>....."
end if
Dim user_job_part
sql = "select * from person where p_no = '" & Session("user_number") & "'"
'Response.Write sql & "<br>"
Rs.open sql, adoconn, adopenstatic, adlockreadonly
user_depart = rs("p_depart")
user_job_part = rs("p_job_part")
Rs.close
query = " SELECT p_sn, p_child_sn, p_subject, TPM.p_method_cd, TPM.p_progress_status, TPMC.p_method_nm, p_subject, p_sub_type, TPMC.p_method_cd "
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd "
if p_sub_type = "C" then
query = query & " WHERE p_child_sn = '"& p_child_sn &"' "
elseif p_sub_type = "M" then
query = query & " WHERE p_sn = '"& p_sn &"' "
end if
adors.Open query, adoConn, 1
if cost_type = "research" then
p_method_cd = adors("p_method_cd")
end if
adors.Close
query = " SELECT p_sn "
query = query & " , p_subject "
query = query & " , TCCD_E.c_code_name as p_export_range "
query = query & " , p_cont_cost "
query = query & " FROM T_PROJECT_BASE TPB "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E ON TCCD_E.c_kind_code = '011' AND TPB.p_export_range = TCCD_E.c_common_code"
query = query & " WHERE p_sn = '"& p_sn &"'"
'Response.Write query & "<BR>"
AdoRs.Open query,adoconn, 1
p_sn = adors("p_sn")
p_subject = adors.fields("p_subject")
p_export_range = adors("p_export_range")
p_cont_cost = adors("p_cont_cost")
adors.Close
'<27>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD> <20>ʱⰪ <20><><EFBFBD><EFBFBD>
query = " SELECT p_method_cd, TPM.p_sn, p_child_sn, p_sub_type, TCCD_A.c_code_name as p_sur_area, TCCD_T.c_code_name as p_sur_target, isnull(TPM.p_sample, 0) as p_sample, p_research_date_st, p_research_date_end, "
query = query & " TCCD_P.c_code_name as p_sur_part, TCCD_F.c_code_name as p_field_process, TPM.p_cont_cost, ISNULL(TCCD_E1.c_code_name,TCCD_E2.c_code_name) as p_export_range "
query = query & " FROM T_PROJECT_METHOD TPM "
query = query & " LEFT OUTER JOIN T_PROJECT_BASE TPB ON TPM.p_sn = TPB.p_sn "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E1 ON TCCD_E1.c_kind_code = '011' AND TPM.p_export_range = TCCD_E1.c_common_code "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E2 ON TCCD_E2.c_kind_code = '011' AND TPB.p_export_range = TCCD_E2.c_common_code "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_A ON TCCD_A.c_kind_code = '012' AND TPM.p_sur_area = TCCD_A.c_common_code "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_T ON TCCD_T.c_kind_code = '013' AND TPM.p_sur_target = TCCD_T.c_common_code "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_P ON TCCD_P.c_kind_code = '014' AND TPM.p_sur_part = TCCD_P.c_common_code "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_F ON TCCD_F.c_kind_code = '015' AND TPM.p_field_process = TCCD_F.c_common_code "
if len(p_child_sn) > 7 then
query = query & " WHERE TPM.p_child_sn = '"& p_child_sn &"' "
elseif p_sub_type = "M" then
query = query & " WHERE TPM.p_sn = '"& p_sn &"' "
end if
if p_method_cd <> "" then
query = query & " AND TPM.p_method_cd = '"&p_method_cd&"' "
end if
''' Response.Write "rs query : " & query &"<BR>"
rs.Open query,adoconn, 1
if rs.recordCount > 0 then
p_sur_area = rs("p_sur_area")
p_sur_target = rs("p_sur_target")
p_sample = Cdbl(rs("p_sample"))
p_research_date_st = rs("p_research_date_st")
p_research_date_end = rs("p_research_date_end")
p_sur_part = rs("p_sur_part")
p_field_process = rs("p_field_process")
p_child_sn = rs("p_child_sn")
p_sub_type = rs("p_sub_type")
if p_sub_type = "C" then
p_cont_cost = "0"
if rs("p_cont_cost") <> "" then
p_cont_cost = rs("p_cont_cost")
end if
end if
p_export_range = rs("p_export_range")
else
p_sur_area = ""
p_sur_target = ""
p_sample = 1
est_sum = 0
p_research_date_st = ""
p_research_date_end = ""
p_sur_part = ""
p_field_process = ""
p_export_range = ""
end if
rs.close
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է°<D4B7><C2B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>. <20>ʱⰪ<CAB1><E2B0AA> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>. <20>Ʒ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>׸<EFBFBD> <20><><EFBFBD><EFBFBD>.
query = " SELECT dc2.d_cost_name as hangmok, dc1.d_cost_name as sebu "
query = query & " FROM direct_costcode dc1 INNER JOIN direct_costcode dc2 ON dc1.d_cost_parents = dc2.d_cost_code AND dc1.d_cost_kind = dc2.d_cost_kind "
query = query & " WHERE dc1.d_cost_parents != '0' "
If cost_type <> "all" Then
query = query & " AND dc1.d_cost_kind = '"& cost_type &"' "
End if
query = query & " AND dc2.d_cost_parents = '0' "
query = query & " ORDER BY dc1.d_cost_parents, dc1.d_cost_code "
'Response.Write "rs query : " & query &"<BR>"
rs.Open query,adoconn, 1
'<27><> <20>÷<EFBFBD><C3B7><EFBFBD> <20>ʱⰪ <20><><EFBFBD><EFBFBD>
for i=1 to line_total
for j=1 to 11
pay_Array_new(i,j) = ""
next
next
query = ""&VbCrlf
query = query & " SELECT *, isnull(confirm_yn,'N') as confirmYN, "&VbCrlf
query = query & " tpm.p_sv_1, tpm.p_sv_2, tpm.p_sv_3, tpm.p_sv_4, "&VbCrlf'<27>ǻ<EFBFBD>(SV)
query = query & " tpm.p_code_1, tpm.p_code_2, tpm.p_code_3, tpm.p_code_4, "&VbCrlf'<27>ڵ<EFBFBD>
query = query & " tpm.p_verify_1, tpm.p_verify_2, tpm.p_verify_3, tpm.p_verify_4, "&VbCrlf'<27><><EFBFBD><EFBFBD>
query = query & " tpm.p_punch_1, tpm.p_punch_2, tpm.p_punch_3, tpm.p_punch_4 "&VbCrlf'<27><>ġ
query = query & " FROM direct_cost dc LEFT OUTER JOIN direct_costcode dcc ON dc.hangmok = dcc.id "&VbCrlf
query = query & " left outer join T_PROJECT_METHOD tpm on dc.p_child_sn = tpm.p_child_sn "&VbCrlf
query = query & " WHERE dc.p_sn = '"& p_sn &"' "&VbCrlf
query = query & " AND del_yes_no = 'no' "&VbCrlf
query = query & " AND hangmok NOT IN ('<27>޸<EFBFBD>','<27>޸<EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "&VbCrlf
If cost_type <> "all" Then
query = query & " AND (cost_type = '"& cost_type &"' "&VbCrlf
If cost_type = "research" Then
query = query & " OR sebu IN ('<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)','<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD>)')) " &VbCrlf
elseIf cost_type = "field" Then
query = query & " OR sebu IN ('<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)','<27><><EFBFBD>ź<EFBFBD>')) "&VbCrlf
Else
query = query & " ) "&VbCrlf
End if
End if
if LEN(p_child_sn) > 8 Then
If InStr(p_child_sn, "_M") > 7 Then
if cost_type = "research" Then
query = query & " AND dc.p_child_sn like '" & Left(p_child_sn, 9) & "%' "&VbCrlf
elseif cost_type = "field" Then
query = query & " AND dc.p_child_sn = '" & p_child_sn & "' "&VbCrlf
end if
Else
query = query & " AND dc.p_child_sn = '" & p_child_sn & "' "&VbCrlf
End If
query = query & " ORDER BY hangmok, dc.p_child_sn "&VbCrlf
Else
query = query & " ORDER BY hangmok "&VbCrlf
end if
adors.Open query, adoconn, 1'adOpenStatic,adLockReadOnly
if adors.recordCount > 0 then
modifyUser = adors("modify_user")
p_sv_1 = adors("p_sv_1")
p_sv_2 = adors("p_sv_2")
p_sv_3 = adors("p_sv_3")
p_sv_4 = adors("p_sv_4")
p_code_1 = adors("p_code_1")
p_code_2 = adors("p_code_2")
p_code_3 = adors("p_code_3")
p_code_4 = adors("p_code_4")
p_verify_1 = adors("p_verify_1")
p_verify_2 = adors("p_verify_2")
p_verify_3 = adors("p_verify_3")
p_verify_4 = adors("p_verify_4")
p_punch_1 = adors("p_punch_1")
p_punch_2 = adors("p_punch_2")
p_punch_3 = adors("p_punch_3")
p_punch_4 = adors("p_punch_4")
end if
'<27><> <20>ټ<EFBFBD><D9BC><EFBFBD> <20><><EFBFBD><EFBFBD>
line_total = adors.recordcount
redim pay_Array_new(line_total, 13)
if adors.RecordCount > 0 Then
redim pay_Array_new(line_total, 16)
'x:<3A><><EFBFBD><EFBFBD>, y:1:<3A>׸<EFBFBD>, 2:<3A><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>/<2F><>, 5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>,7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 8:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>/<2F><>, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD>, 10:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>,11:<3A><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD>
'0:<3A>޸<EFBFBD>, 12:<3A>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>޸<EFBFBD>, 14:p_child_sn, 15:confirm <20><><EFBFBD><EFBFBD>
i = -1
txt_p_subject_group = ""
txt_p_sn_group = ""
do while not adors.EOF
i = i + 1
pay_Array_new(i,1) = adors("d_cost_name")'adors("hangmok")
pay_Array_new(i,2) = adors("sebu")
pay_Array_new(i,3) = adors("est_danga")
pay_Array_new(i,4) = adors("est_bu_or_cnt")
pay_Array_new(i,5) = adors("est_dosu_or_time")
pay_Array_new(i,6) = FormatNumber(adors("est_money"),0)
pay_Array_new(i,7) = adors("act_danga")
pay_Array_new(i,8) = adors("act_bu_or_cnt")
pay_Array_new(i,9) = adors("act_dosu_or_time")
pay_Array_new(i,10) = FormatNumber(adors("act_money"),0)
pay_Array_new(i,11) = FormatNumber(adors("est_money") - adors("act_money"),0)
If adors("cost_type") = "research" Then
pay_Array_new(i,12) = "<22><><EFBFBD><EFBFBD>"
ElseIf adors("cost_type") = "field" Then
pay_Array_new(i,12) = "<22>ǻ<EFBFBD>"
elseIf adors("cost_type") = "support" Then
pay_Array_new(i,12) = "<22>濵"
elseIf adors("cost_type") = "DP" Then
pay_Array_new(i,12) = "<22><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD>"
End If
pay_Array_new(i,14) = adors("p_child_sn")
pay_Array_new(i,15) = adors("confirmYN")
pay_Array_new(i,16) = adors("memo")
if trim(pay_Array_new(i,6)) = "" then
else
est_sum = cdbl(est_sum) + cdbl(pay_Array_new(i,6)) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
end if
if pay_Array_new(i,10) <> "" then
act_sum = cdbl(act_sum) + cdbl(pay_Array_new(i,10)) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
end if
adors.movenext
loop
end if
adoRs.Close
query = " SELECT * "
query = query & " FROM direct_cost "
query = query & " WHERE p_sn = '" & p_sn & "' "
query = query & " AND del_yes_no = 'no' "
If cost_type <> "all" Then
query = query & " AND cost_type = '" & cost_type & "' "
End if
query = query & " AND p_child_sn = '" & p_child_sn & "' "
query = query & " AND hangmok IN ('<27>޸<EFBFBD>', '<27>޸<EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
query = query & " ORDER BY id "
'response.Write query
adors.Open query, adoconn, 1
do while not adors.EOF
if adors("hangmok") = "<22>޸<EFBFBD>" then
pay_Array_new(0,0) = adors("memo")
elseif adors("hangmok") = "<22>޸<EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
pay_Array_new(0,13) = adors("memo")
end if
adors.movenext
loop
adoRs.close
rs.close
query = "select * from document where d_no = '" & krc_no & "'"
adoRs.open query, adoconn, 1
edit_yes_no = "yes" '<27>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>϶<EFBFBD><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if adoRs.recordcount > 0 then
if lcase(adoRs("d_delok")) = "y" and (cint(user_depart) = 12 OR cint(user_depart) = 16) then '12, 16<31><36> <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, QC <20><>... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߾<EFBFBD><DFBE><EFBFBD>.
edit_yes_no = "yes"
end If
end if
adoRs.close
p_cont_cost = cdbl(p_cont_cost)
%>
<form method=post name='frm_direct_cost' id="frm_direct_cost">
<!-- <20><><EFBFBD><EFBFBD><EFBFBD>ɰ͵<C9B0> -->
<input type="hidden" name='p_sn' value='<%=p_sn%>' >
<input type="hidden" name='line_total' value='<%=line_total%>' >
<input type="hidden" name="p_sample" value='<%=p_sample%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD> <20><><EFBFBD>ֱ<EFBFBD>-->
<input type="hidden" name="pay_save" value='<%=pay_save%>'>
<input type="hidden" name="prj_get" value=''> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD> <20><><EFBFBD>ֱ<EFBFBD>-->
<input type="hidden" name="p_cont_cost" value='<%=p_cont_cost%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
<input type="hidden" name="project_type_code" value='<%=project_type_code%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>п<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
<input type="hidden" name="edit_yes_no" value='<%=edit_yes_no%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>п<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
<input type="hidden" name="sc_year" value='<%=sc_year%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
<input type="hidden" name="sc_month" value='<%=sc_month%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
<input type="hidden" name="sc_team" value='<%=sc_team%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
<input type="hidden" name="sc_name" value='<%=sc_name%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
<input type="hidden" name="sc_method" value='<%=sc_method%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
<input type="hidden" name="txt_p_sn_group" value='<%=txt_p_sn_group%>' > <!--<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>-->
<input type="hidden" name="p_child_sn" value='<%=p_child_sn%>' >
<input type="hidden" name ='cost_type' value = '<%=cost_type%>'> <!-- <20><><EFBFBD><EFBFBD> OR <20>ǻ<EFBFBD>-->
<input type="hidden" name ='p_sub_type' value = '<%=p_sub_type%>'> <!-- M or C <20><>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD> <20>ܵ<EFBFBD><DCB5><EFBFBD><EFBFBD><EFBFBD>-->
<input type="hidden" name ='lineNumber' value = ''> <!-- confirmYN<59><4E> <20><> <20><><EFBFBD><EFBFBD>-->
<!-- <20><><EFBFBD><EFBFBD><EFBFBD>ɰ͵<C9B0> -->
<div id="m_list"></div>
<table style="width:1180px;">
<tr>
<td>
<table class='table table-sm2 table-bordered'>
<tr>
<td colspan=4 align="left" bgcolor='yellow' style='font-size:13pt;font-weight:bold'><%=cost_type_name%> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Դϴ<D4B4>.</td>
</tr>
<tr>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
<td width="15%" ><%=p_child_sn %></td>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td><%=p_subject%></td>
</tr>
<tr>
<td width="15%" class='bg-gray-light text-center'><3E>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD></td>
<td width="15%" ><%=p_export_range%></td>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td>
<%
query = " SELECT TPM.p_method_cd, p_child_sn, TPMC.p_method_nm, p_sn, p_subject, p_sub_type, TPMC.p_method_cd, p_input_complete, TPM.p_intention "
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd "
if p_sub_type = "C" then
query = query & " WHERE p_child_sn = '"& p_child_sn &"' "
elseif p_sub_type = "M" then
query = query & " WHERE p_sn = '"& p_sn &"' "
end if
adors.Open query, adoConn, 1
%>
<%=adors("p_method_nm")%>-[<%=adors("p_intention")%>]
<select name="p_method_cd" id = "p_method_cd" onchange="p_method_cd_select()" class='d-none'>
<option value=""><3E><> <20><></option>
<% for i = 1 to adors.RecordCount %>
<option value="<%=adors("p_method_cd")%>@<%=adors("p_child_sn")%>" <%if p_child_sn = trim(adors("p_child_sn")) then %> selected <%end if %> ><%=adors("p_method_nm")%>-[<%=adors("p_intention")%>]</option>
<%
p_sub_type = adors("p_sub_type")
adors.movenext
next %>
</select>
</td>
</tr>
<% if cost_type = "field" or (cost_type = "research" and p_sub_type = "C") then %>
<tr>
<td width="15%" class='bg-gray-light text-center' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="15%" ><%=p_sur_area%></td>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td><%=p_sur_target%></td>
</tr>
<tr>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD>ü<EFBFBD></td>
<td width="15%" ><font ><%=formatnumber(p_sample, 0)%></font></td>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD></td>
<td><font ><%=p_research_date_st%>~<%=p_research_date_end%></font></td>
</tr>
<tr>
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
<td width="15%" ><font ><%=p_sur_part %></font></td>
<td width="15%" class='bg-gray-light text-center'><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD></td>
<td><font ><%=p_field_process %></font></td>
</tr>
<%
end if
adors.close
%>
<%if admin = "true" then%>
<tr height=30 bgcolor='yellow'>
<td width=100% colspan=4 ><3E><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ܰ<EFBFBD>(Actual <20>Է°<D4B7><C2B0><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>) : <%=ing_stat%> </td>
</tr>
<%end if%>
</table>
</td>
</tr>
<tr>
<td style="padding:10 0 0 0;">
<table id="direct_cost_table" class='table table-sm table-sm2 table-bordered table-head tr-colors'>
<tr>
<td class='align-middle text-center' rowspan="2"><3E>׸<EFBFBD></td>
<td class='align-middle text-center' rowspan="2"><3E><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD></td>
<td class='align-middle text-center' colspan="4"><font class="tahoma_white">Estimate Cost</font></td>
<td class='align-middle text-center' style="width:200px;"></td>
<td class='align-middle text-center' colspan="4"><font class="tahoma_white">Actual Cost</font></td>
<td class='align-middle text-center' rowspan="2"><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>)</td>
<td class='align-middle text-center' rowspan="2"><font class="tahoma_white">Action</font></td>
</tr>
<tr>
<td class='align-middle text-center' ><3E><>(<28>ܰ<EFBFBD>)</td>
<td class='align-middle text-center' ><3E><>/<2F><></td>
<td class='align-middle text-center' ><3E><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD></td>
<td class='align-middle text-center' ><3E>ݾ<EFBFBD></td>
<td class='align-middle text-center'><3E>޸<EFBFBD></td>
<td class='align-middle text-center' ><3E><>(<28>ܰ<EFBFBD>)</td>
<td class='align-middle text-center' ><3E><>/<2F><></td>
<td class='align-middle text-center' ><3E><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD></td>
<td class='align-middle text-center' ><3E>ݾ<EFBFBD></td>
</tr>
<% for i=0 to line_total-1
pay_Array_new(i,7) = ""
pay_Array_new(i,8) = ""
pay_Array_new(i,9) = ""
%>
<tr>
<!-- (2014-05-13)save<76><65> hangmok<6F><6B><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> hidden<65><6E><EFBFBD><EFBFBD> hangmok<6F><6B> <20><><EFBFBD><EFBFBD> -->
<td class='align-middle text-center'><span class="field_hangmok"><%=pay_Array_new(i,1)%></span></td> <!-- <20>׸<EFBFBD> -->
<%If (Session("Depart_Code") = "12" or Session("Depart_Code") = "18") and (pay_Array_new(i,1)= "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" or pay_Array_new(i,1)= "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") Then %>
<td class='align-middle text-center'><span class="field_sebu" style="cursor:pointer;"><%=pay_Array_new(i,2)%></span></td> <!-- <20><><EFBFBD><EFBFBD> -->
<%Else %>
<td class='align-middle text-center'><%=pay_Array_new(i,2)%></td> <!-- <20><><EFBFBD><EFBFBD> -->
<%End If %>
<td class='align-middle text-center'><%if pay_Array_new(i,3) <> "" then response.write FormatNumber(pay_Array_new(i,3) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>(<28>ܰ<EFBFBD>) -->
<td class='align-middle text-center'><%if pay_Array_new(i,4) <> "" then response.write FormatNumber(pay_Array_new(i,4) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>/<2F><> -->
<td class='align-middle text-center'><%if pay_Array_new(i,5) <> "" then response.write FormatNumber(pay_Array_new(i,5) ,2) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD> -->
<td class='align-middle text-center'><%if pay_Array_new(i,6) <> "" then response.write FormatNumber(pay_Array_new(i,6) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
<td align="left" ><%= pay_Array_new(i,16)%></td> <!-- <20>޸<EFBFBD> -->
<td class='align-middle text-center'><%if pay_Array_new(i,7) <> "" then response.write FormatNumber(pay_Array_new(i,7) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>(<28>ܰ<EFBFBD>) -->
<td class='align-middle text-center'><%if pay_Array_new(i,8) <> "" then response.write FormatNumber(pay_Array_new(i,8) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>/<2F><> -->
<td class='align-middle text-center'><%if pay_Array_new(i,9) <> "" then response.write FormatNumber(pay_Array_new(i,9) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD> -->
<%If (Session("Depart_Code") = "12" or Session("Depart_Code") = "18") and (pay_Array_new(i,1)= "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" or pay_Array_new(i,1)= "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") Then %>
<td class='align-middle text-center'><span class="act_cost"><%if pay_Array_new(i,10) <> "" then response.write FormatNumber(pay_Array_new(i,10) ,0) end if%></span></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
<%Else %>
<td class='align-middle text-center'><%if pay_Array_new(i,10) <> "" then response.write FormatNumber(pay_Array_new(i,10) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
<%End If %>
<td class='align-middle text-center'><%if pay_Array_new(i,11) <> "" then response.write FormatNumber(pay_Array_new(i,11) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> -->
<td class='align-middle text-center'>
<%
'Response.Write Session("Depart_Code")
'if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and _
'##### DP <20>ڵ<EFBFBD> <20><>Ʈ <20>߰<EFBFBD> (2018-02-22) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'##### p_code_1="20150810"(<28>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̾<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - 20180223 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
'##### <20>ڵ<EFBFBD> -> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD> (2018-11) Hwi
if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and _
(trim(Session("User_Number")) = p_sv_1 or trim(Session("User_Number")) = p_sv_2 or trim(Session("User_Number")) = p_sv_3 or trim(Session("User_Number")) = p_sv_4 _
or trim(Session("User_Number")) = p_code_1 or p_code_1="20181009" or trim(Session("User_Number")) = p_code_2 or trim(Session("User_Number")) = p_code_3 or trim(Session("User_Number")) = p_code_4 _
or trim(Session("User_Number")) = p_verify_1 or trim(Session("User_Number")) = p_verify_2 or trim(Session("User_Number")) = p_verify_3 or trim(Session("User_Number")) = p_verify_4 _
or trim(Session("User_Number")) = p_punch_1 or trim(Session("User_Number")) = p_punch_2 or trim(Session("User_Number")) = p_punch_3 or trim(Session("User_Number")) = p_punch_4 _
or trim(Session("teamplace")) >= 3 ) then %>
<% if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and trim(Session("teamplace")) >= 3 then %>
<button type="button" name="confirmN" id="confirmN_<%=i %>" value="N" <% if pay_Array_new(i,15) = "N" then %> style="display :none" <% end if %> onclick="confirmYN('<%=pay_Array_new(i,1)%>','<%=pay_Array_new(i,2)%>','N','<%=i %>')"><3E><><EFBFBD><EFBFBD></button>
<% else %>
<!--<input type="text" name="confirmN" id="confirmN_<%=i %>" value="Ȯ<>ε<EFBFBD>" <% if pay_Array_new(i,15) = "N" then %> style="display :none" <% end if %> />-->
<b name="confirmN" id="confirmN_<%=i %>" <% if pay_Array_new(i,15) = "N" then %> style="display :none;" <% end if %>>Ȯ<><C8AE> <20>Ϸ<EFBFBD></b>
<% end if %>
<button type="button" name="confirmY" id="confirmY_<%=i %>" value="Y" <% if pay_Array_new(i,15) = "Y" then %> style="display :none" <% end if %>onclick="confirmYN('<%=pay_Array_new(i,1)%>','<%=pay_Array_new(i,2)%>','Y',<%=i %>)">Ȯ<><C8AE></button>
<%
end if
If cost_type = "all" Then
%>
<%=pay_Array_new(i,12)%>
<%
If InStr(p_child_sn, "_M") > 7 And pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" then
%>
(<%=pay_Array_new(i,14)%>)
<%
End if
End If
%>
</td>
</tr>
<%
NEXT
%>
<tr>
<td class='align-middle text-center' rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' rowspan="3"><b class="tahoma_orange"><%=formatnumber(p_cont_cost,0)%></b> <20><><br>(<28>ΰ<EFBFBD><CEB0><EFBFBD> <20><><EFBFBD><EFBFBD>)</td>
<td class='align-middle text-center' colspan="2"><%=cost_type_name%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="3"><font ><input type="text" style="width:120;text-align:right" name=estimate_sum value='<%=formatnumber(est_sum,0)%>' readonly><3E><></td>
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="4"><input type="text" name="actual_sum" style="width:120;text-align:right" value='<%=formatnumber(act_sum,0)%>' readonly><3E><></td>
</tr>
<tr>
<td class='align-middle text-center' colspan="2"><%=cost_type_name%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="3"><input name=estimate_proportion type="text" style="width:120;text-align:right" value='<%if p_cont_cost <> 0 then response.write formatnumber(est_sum / p_cont_cost * 100,2) else response.write "0" end if%>' readonly>%</td>
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="4"><input type="text" name=actual_proportion style="width:120;text-align:right" value='<%if p_cont_cost <> 0 then response.write formatnumber(act_sum / p_cont_cost * 100,2) else response.write "0" end if%>' readonly>%</td>
</tr>
<tr>
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD>ô<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="3"><input name=estimate_sample type="text" style="width:120;text-align:right" value='<%if p_sample <> 0 then %><%=formatnumber(est_sum / p_sample,0)%><%else %>0<%end if %>' readonly><3E><></td>
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD>ô<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="4"><input type="text" name=actual_sample style="width:120;text-align:right" value='<%if p_sample <> 0 then %><%=formatnumber(act_sum / p_sample,0)%><%else %>0<%end if %>' readonly><3E><></td>
</tr>
<%if cost_type = "field" Or cost_type = "all" then%>
<tr>
<td class='align-middle text-center'><3E>޸<EFBFBD><br>
<img src="/images/project/btn_ssave.gif" title='<27>޸<EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>' onclick="save_memo();" style='cursor:pointer' align="absmiddle">
</td>
<td class='align-middle text-center' colspan="12">
<textarea rows=5 cols=80 name='txt_memo' style="width:100%;height:80;"><%=pay_Array_new(0,0)%></textarea>
</td>
</tr>
<%if admin = "true" then%>
<tr>
<td class='align-middle text-center'>MEMO<br><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td class='align-middle text-center' colspan="12">
<TEXTAREA rows=5 cols=80 name='txt_memo2' style="width:100%;height:80;"><%=pay_Array_new(0,13)%></TEXTAREA>
</td>
</tr>
<%end if%>
<%end if%>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
//<2F>޸<EFBFBD> <20><><EFBFBD><EFBFBD>
function save_memo() {//sv<73><76><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : 2010<31><30> 7<><37> 6<><36> <20><><EFBFBD><EFBFBD>
document.frm_direct_cost.action = "/inspection/direct_cost_sv_memo_save_2014.asp?ref=" + encodeURIComponent(window.location.href);
document.frm_direct_cost.submit();
}
function p_method_cd_select() {
if ($('#p_method_cd option:selected').val() == "") {
direct_cost_table.style.visibility = "hidden";
} else {
//alert($('#p_child_sn option:selected').val());
direct_cost_table.style.visibility = "visible";
var url = "p_sn=" + document.frm_direct_cost.p_sn.value;
url = url + "&p_method_cd=" + $('#p_method_cd option:selected').val();
document.frm_direct_cost.action = "direct_cost_print_2014.asp?" + url;
document.frm_direct_cost.submit();
}
}
function confirmYN(hangmok, sebu, yn, i) {
p_child_sn = document.frm_direct_cost.p_child_sn.value;
cost_type = document.frm_direct_cost.cost_type.value;
document.frm_direct_cost.lineNumber.value = i;
ajaxCallJson("direct_cost_ajax_confirm.asp?hangmok=" + hangmok + "&sebu=" + sebu, { p_child_sn: p_child_sn, cost_type: cost_type, confirmYN: yn }, null, "post", "confrimYNResult()");
}
function confrimYNResult() {
lineNumber = document.frm_direct_cost.lineNumber.value
if (ajaxResponse == "Y_OK") {
$("#confirmY_" + lineNumber).css("display", "none");
$("#confirmN_" + lineNumber).css("display", "inline");
}else {
$("#confirmY_" + lineNumber).css("display", "inline");
$("#confirmN_" + lineNumber).css("display", "none");
}
}
$(function () {
cutmenu(); /// <20>˾<EFBFBD><CBBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
var url;
var p_sn = "<%=p_child_sn %>";
var sebu_name;
$(".field_sebu").each(function (i) {
if ($(".act_cost:eq(" + i + ")").text() != "0") {
$(".field_sebu:eq(" + i + ")").css("color", "red");
} else {
$(".field_sebu:eq(" + i + ")").css("color", "black");
}
$(".field_sebu:eq(" + i + ")").click(function () {
if ($(this).parent("td").prev().text() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" || $(this).parent("td").prev().text() == "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") {
if ($(".act_cost:eq(" + i + ")").text() == "0") {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
return false;
} else {
url = "direct_cost_print_2014_ajax.asp?p_sn=" + p_sn + "&sebu_name=" + $(this).text() + "&sebu_hangmok=" + $(this).parent("td").prev().text();
$("#m_list").dialog({
autoOpen: false,
modal: true,
resizable: false,
position: { my: "center", at: "top" },
show: "blind",
width: "800",
height: "auto",
title: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ",
open: function () {
$(".ui-widget-overlay").css({
opacity: 0.5,
filter: "Alpha(Opacity=50)",
backgroundColor: "gray"
});
},
close: function (event, ui) {
$("body").css({
overflow: 'inherit'
});
url = "";
$("#m_list").dialog("close");
}
});
$("#m_list").load(url, function () {
$("#m_list").dialog("open");
});
}
}
});
});
});
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->