Files
KIN/project/project_list2_dep_ok_2014.asp
2025-09-29 17:55:08 +09:00

913 lines
46 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set beforeRs = server.CreateObject("ADODB.RECORDSET")
set afterRs = server.CreateObject("ADODB.RECORDSET")
dim alarmQuery
'==========================================알림을 위해 수정 전 Data를 변수에 담아 놓기==========================================
' request("p_child_sn1") 프로젝트 M타입은 쓰지 않기 때문에 p_child_sn1 만 저장하면 됨.
' 불러올 목록.
' 계약기간 st, end p_con_date_st p_con_date_end
' 계약일자 p_decide_date
' 단위계약액 p_cont_cost
' 용역범위 001테이블 002보고서 p_export_range
' 조사지역 p_sur_area
' 조사대상 p_sur_target
' 표본수 p_sample
' 조사기간 st, end p_research_date_st p_research_date_end
' 조사분류 p_sur_part
' 실사수행 p_field_process
' 검증률 p_inspection_rate
' 담장자 p_rsch_1_a p_rsch_2_a p_rsch_3_a p_rsch_4_a p_rsch_1_b p_rsch_2_b p_rsch_3_b p_rsch_4_b p_rsch_1_c p_rsch_2_c p_rsch_3_c p_rsch_4_c
' p_sv_1 p_sv_2 p_sv_3 p_sv_4 p_code_1 p_code_2 p_code_3 p_code_4 p_verify_1 p_verify_2 p_verify_3 p_verify_4
' p_dp_1 p_dp_2 p_dp_3 p_dp_4 p_it_1 p_it_2 p_it_3 p_it_4 p_supp_1 p_supp_2 p_supp_3 p_supp_4
' 연구부서 일정 st, end p_rsch_date_st p_rsch_date_end
' 실사일정 st, end p_field_date_st p_field_date_end
' 검증일정 st, end p_verify_date_st p_verify_date_end
' 코딩펀치일정 st, end p_code_date_st p_code_date_end
' 디피일정 st, end p_dp_date_st p_dp_date_end
' IT일정 st, end p_it_date_st p_it_date_end
' 내부미팅일정 시간 장소 p_premeet_date p_premeet_time p_premeet_place
' 실사오티일정 시간 장소 p_ot_date p_ot_time p_ot_place
' 수행계획서 상태값 p_progress_status
' 직접비 입력 상태값 p_input_complete
Dim alarmMap
Set alarmMap = Server.CreateObject("Scripting.Dictionary")
alarmMap.Add "p_con_date","계약기간"
alarmMap.Add "p_decide_date","계약일"
alarmMap.Add "p_cont_cost","단위계약액"
'alarmMap.Add "p_export_range","용역범위"
'alarmMap.Add "p_sur_area","조사지역"
'alarmMap.Add "p_sur_target","조사대상"
alarmMap.Add "p_sample","표본수"
alarmMap.Add "p_research_date","조사기간"
'alarmMap.Add "p_field_process","실사수행"
'alarmMap.Add "p_inspection_rate","검증률"
'alarmMap.Add "p_rsch_a","연구기획담당자"
'alarmMap.Add "p_rsch_b","연구실사관리담당자"
'alarmMap.Add "p_rsch_c","연구보고서담당자"
'alarmMap.Add "p_sv","실사담당자"
'alarmMap.Add "p_code","검증담당자"
'alarmMap.Add "p_verify","코딩펀치담당자"
'alarmMap.Add "p_dp","DP담당자"
'alarmMap.Add "p_it","IT담당자"
alarmMap.Add "p_rsch_date","연구세부일정"
alarmMap.Add "p_field_date","실사세부일정"
alarmMap.Add "p_verify_date","검증세부일정"
alarmMap.Add "p_punch_date","펀치세부일정"
alarmMap.Add "p_code_date","코딩세부일정"
alarmMap.Add "p_dp_date","DP세부일정"
alarmMap.Add "p_it_date","IT세부일정"
alarmMap.Add "p_premeet","내부미팅세부일정"
alarmMap.Add "p_ot","실사OT세부일정"
'alarmMap.Add "p_progress_status","수행계획서진행단계"
'alarmMap.Add "p_input_complete","예상직접비입력완료여부"
alarmQuery = ""
alarmQuery = alarmQuery & " select isnull(p_con_date_st + '~' + p_con_date_end, '') as p_con_date, isnull(p_decide_date, '') as p_decide_date, isnull(p_cont_cost, '') as p_cont_cost, "
alarmQuery = alarmQuery & " isnull(p_export_range, '') as p_export_range, isnull(p_sur_area, '') as p_sur_area, isnull(p_sur_target, '') as p_sur_target, isnull(p_sample, '') as p_sample, "
alarmQuery = alarmQuery & " isnull(p_research_date_st + '~' + p_research_date_end, '') as p_research_date, isnull(p_sur_part, '') as p_sur_part, isnull(p_field_process, '') as p_field_process, isnull(p_inspection_rate, '') as p_inspection_rate, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_a, '') + ',' + isnull(p_rsch_2_a, '') + ',' + isnull(p_rsch_3_a, '') + ',' + isnull(p_rsch_4_a, '') as p_rsch_a, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_b, '') + ',' + isnull(p_rsch_2_b, '') + ',' + isnull(p_rsch_3_b, '') + ',' + isnull(p_rsch_4_b, '') as p_rsch_b, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_c, '') + ',' + isnull(p_rsch_2_c, '') + ',' + isnull(p_rsch_3_c, '') + ',' + isnull(p_rsch_4_c, '') as p_rsch_c, "
alarmQuery = alarmQuery & " isnull(p_sv_1, '') + ',' + isnull(p_sv_2, '') + ',' + isnull(p_sv_3, '') + ',' + isnull(p_sv_4, '') as p_sv , "
alarmQuery = alarmQuery & " isnull(p_punch_1, '') + ',' + isnull(p_punch_2, '') + ',' + isnull(p_punch_3, '') + ',' + isnull(p_punch_4, '') as p_punch , "
alarmQuery = alarmQuery & " isnull(p_verify_1, '') + ',' + isnull(p_verify_2, '') + ',' + isnull(p_verify_3, '') + ',' + isnull(p_verify_4, '') as p_verify, "
alarmQuery = alarmQuery & " isnull(p_code_1, '') + ',' + isnull(p_code_2, '') + ',' + isnull(p_code_3, '') + ',' + isnull(p_code_4, '') as p_code , "
alarmQuery = alarmQuery & " isnull(p_dp_1, '') + ',' + isnull(p_dp_2, '') + ',' + isnull(p_dp_3, '') + ',' + isnull(p_dp_4, '') as p_dp , "
alarmQuery = alarmQuery & " isnull(p_it_1, '') + ',' + isnull(p_it_2, '') + ',' + isnull(p_it_3, '') + ',' + isnull(p_it_4, '') as p_it , "
alarmQuery = alarmQuery & " isnull(p_rsch_date_st + '~' + p_rsch_date_end, '') as p_rsch_date, isnull(p_field_date_st + '~' + p_field_date_end, '') as p_field_date, isnull(p_verify_date_st + '~' + p_verify_date_end, '') as p_verify_date, "
alarmQuery = alarmQuery & " isnull(p_code_date_st + '~' + p_code_date_end, '') as p_code_date, isnull(p_dp_date_st + '~' + p_dp_date_end, '') as p_dp_date, isnull(p_it_date_st + '~' + p_it_date_end, '') as p_it_date, "
alarmQuery = alarmQuery & " isnull(p_premeet_date + ' ' + p_premeet_time + ' ' + p_premeet_place, '') as p_premeet, isnull(p_ot_date + ' ' + p_ot_time + ' ' + p_ot_place, '') as p_ot, p_progress_status, p_input_complete "
alarmQuery = alarmQuery & " from T_PROJECT_METHOD "
alarmQuery = alarmQuery & " where p_child_sn = '" & request("p_child_sn1") & "' "
'response.Write alarmQuery
beforeRs.Open alarmQuery, adoConn, 3
'response.Write beforeRs("p_rsch_date")
'===============================================================================================================================
Dim p_input_complete()
Dim p_progress_flag()
Dim p_field_dept()
Dim p_rsch_dept()
Dim p_is_dept()
Dim p_it_dept()
Dim templ_p_input_com
Dim templ_p_progress_flag
p_sn = request("p_sn")
p_sub_type = request("p_sub_type")
p_cli_company_cd = request("p_cli_company_cd")
p_cli_per_cd = request("p_cli_per_cd")
p_state = request("p_state")
p_subject = request("p_subject")
p_cli_company_nm = request("p_cli_company_nm")
p_cli_depart = request("p_cli_depart")
p_cli_per_nm = request("p_cli_per_nm")
p_cli_per_com_tel = request("p_cli_per_com_tel")
p_cli_per_tel = request("p_cli_per_tel")
p_cli_per_email = request("p_cli_per_email")
p_client_type_cd = request("p_client_type_cd")
p_depart_dep = request("p_depart_dep")
p_con_date_st = request("p_con_date_st")
if isEmpty(request("p_con_date_st")) = true then
p_con_date_st = "null"
end if
p_con_date_end = request("p_con_date_end")
if isEmpty(request("p_con_date_end")) = true then
p_con_date_end = "null"
end if
p_decide_date = request("p_decide_date")
if isEmpty(request("p_decide_date")) = true then
p_decide_date = "null"
end if
p_cont_cost = replace(request("p_cont_cost"), ",", "")
if isEmpty(request("p_cont_cost")) = true then
p_cont_cost = "null"
end if
p_export_range = request("p_export_range")
if isEmpty(request("p_export_range")) = true then
p_export_range = "null"
end if
p_category = request("p_category")
if isEmpty(request("p_category")) = true then
p_category = "null"
end if
research_count = request("research_count")
p_memo = request("p_memo")
p_index = ""
p_progress_status = "001"
If p_sub_type = "M" then
query = " UPDATE [project2].[dbo].[T_PROJECT_BASE] "
query = query & " SET p_subject = '" & p_subject & "' "
if p_con_date_st <> "null" then
query = query & " ,p_con_date_st = '" & p_con_date_st & "' "
end if
if p_con_date_end <> "null" then
query = query & " ,p_con_date_end = '" & p_con_date_end & "' "
end if
if p_decide_date <> "null" then
query = query & " ,p_decide_date = '" & p_decide_date & "' "
end if
if p_cont_cost <> "null" then
query = query & " ,p_cont_cost = " & p_cont_cost & " "
end if
if p_export_range <> "null" then
query = query & " ,p_export_range = '" & p_export_range & "' "
end if
if p_category <> "null" then
query = query & " ,p_category = ' " & p_category & ",' "
end if
if p_con_date_end <> "null" then
if year(p_con_date_end) > 2019 then
query = query & " ,p_statistics = '" & year(dateAdd("m", -3, p_con_date_end)) & "' "
else
query = query & " ,p_statistics = '" & year(p_con_date_end) & "' "
end if
end if
query = query & " WHERE p_sn = '" & p_sn & "' "
adoconn.Execute query
'response.write "query : " & query & "<br/>"
Else
For i = 1 To research_count Step 1
query = " UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
query = query & " SET p_subject = '" & p_subject & "' "
if p_con_date_st <> "null" then
query = query & " ,p_con_date_st = '" & p_con_date_st & "' "
end if
if p_con_date_end <> "null" then
query = query & " ,p_con_date_end = '" & p_con_date_end & "' "
end if
if p_decide_date <> "null" then
query = query & " ,p_decide_date = '" & p_decide_date & "' "
end if
if p_cont_cost <> "null" then
query = query & " ,p_cont_cost = " & p_cont_cost & " "
end if
if p_export_range <> "null" then
query = query & " ,p_export_range = '" & p_export_range & "' "
end if
if p_category <> "null" then
query = query & " ,p_category = ' " & p_category & ",' "
end if
if p_con_date_end <> "null" then
if year(p_con_date_end) > 2019 then
query = query & " ,p_statistics = '" & year(dateAdd("m", -3, p_con_date_end)) & "' "
else
query = query & " ,p_statistics = '" & year(p_con_date_end) & "' "
end if
end if
query = query & " WHERE p_sn = '" & p_sn & "' "
query = query & " AND p_method_cd = " & request("p_method_cd" & i) & " "
query = query & " AND p_child_sn = '" & request("p_child_sn" & i) & "' "
' response.write "query : " & query & "<br/>"
adoconn.Execute query
Next
End if
reDim p_input_complete(research_count)
reDim p_field_dept(research_count)
reDim p_rsch_dept(research_count)
reDim p_is_dept(research_count)
reDim p_it_dept(research_count)
reDim p_progress_flag(research_count)
For i = 1 To research_count Step 1
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 "
query = query & " ,isnull(p_rsch_dept,'') as p_rsch_dept, isnull(p_field_dept,'') as p_field_dept "
query = query & " , isnull(p_is_dept,'') as p_is_dept "
query = query & " , isnull(p_it_dept,'') as p_it_dept "
query = query & " , 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_punch_1, p_punch_2, p_punch_3, p_punch_4 "
query = query & " ,p_verify_1, p_verify_2, p_verify_3, p_verify_4 "
query = query & " ,p_code_1, p_code_2, p_code_3, p_code_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_flag, p_progress_status, p_input_complete "
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 & "'"
query = query & " AND p_sub_type = '" & p_sub_type & "'"
If p_sub_type = "C" Then
query = query & " AND PM.p_method_cd = '" & Request("p_method_cd") & "'"
if Request("p_child_sn" & i) <> "" then
query = query & " AND PM.p_child_sn = '" & Request("p_child_sn" & i) & "' "
End if
End If
'Response.Write query
rsp.Open query, adoConn, 1
p_input_complete(i) = rsp("p_input_complete")
p_field_dept(i) = rsp("p_field_dept")
p_rsch_dept(i) = rsp("p_rsch_dept")
p_is_dept(i) = rsp("p_is_dept")
p_it_dept(i) = rsp("p_it_dept")
p_progress_flag(i) = request("p_progress_flag" & i)
rsp.moveNext
rsp.Close
next
For i = 1 To research_count Step 1
If p_sub_type = "C" Then
p_method_cd = request("p_method_cd" & i)
End if
If request("p_rsch_dept" & i) = "900" then
p_input_complete(i) = "o" + right(p_input_complete(i), 2)
p_progress_flag(i) = "o" + right(p_progress_flag(i), 2)
end If
If request("p_field_dept" & i) = "900" then
p_input_complete(i) = left(p_input_complete(i), 1) + "oo"
p_progress_flag(i) = left(p_progress_flag(i), 1) + "o" + right(p_progress_flag(i), 1)
end If
if request("p_is_dept" & i) = "900" then '##### DP
p_progress_flag(i) = left(p_progress_flag(i), 2) + "o"
end if
If cstr(p_field_dept(i)) <> cstr(request("p_field_dept" & i)) then
'if cstr(request("p_field_dept" & i)) = "8" then
' 'p_input_complete(i) = left(p_input_complete(i), 1) + "ox"
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"' qc는 무조건 완료 -_- (qc는 예상직접비 결재 안하도록 하기 위함)
'elseif cstr(request("p_field_dept" & i)) = "9" then
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
'elseif cstr(request("p_field_dept" & i)) = "12" then
' 'p_input_complete(i) = left(p_input_complete(i), 1) + "xx"
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"' qc는 무조건 완료 -_- (qc는 예상직접비 결재 안하도록 하기 위함)
'end if
if p_field_dept(i) = "0" Then
p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
End If
if p_field_dept(i) = "900" then
p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
p_progress_flag(i) = left(p_progress_flag(i), 1) + "x" + right(p_progress_flag(i), 1)
end if
end If
If cstr(p_rsch_dept(i)) <> cstr(request("p_rsch_dept" & i)) then
If p_rsch_dept(i) = "900" then
p_input_complete(i) = "x" + right(p_input_complete(i), 2)
p_progress_flag(i) = "x" + right(p_progress_flag(i), 2)
end If
end If
If cstr(p_is_dept(i)) <> cstr(request("p_is_dept" & i)) then
If p_is_dept(i) = "900" then
p_progress_flag(i) = left(p_progress_flag(i), 2) + "x"
end If
end If
'Response.write p_input_complete(i)
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "&VbCrlf
query = query & "SET p_child_sn = '" & request("p_child_sn" & i) & "' "&VbCrlf
query = query & " ,p_sub_type = '" & request("p_sub_type") & "' "&VbCrlf
if isEmpty(request("p_intention" & i)) = false then
query = query & " ,p_intention = '" & request("p_intention" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_area" & i)) = false then
query = query & " ,p_sur_area = '" & request("p_sur_area" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_target" & i)) = false then
query = query & " ,p_sur_target = '" & request("p_sur_target" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sample" & i)) = false then
If request("p_sample" & i) <> "" Then
query = query & " ,p_sample = " & request("p_sample" & i) & " "&VbCrlf
Else
query = query & " ,p_sample = 0 "&VbCrlf
End If
end if
if isEmpty(request("p_inspection_rate" & i)) = false then
query = query & " ,p_inspection_rate = '" & request("p_inspection_rate" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_research_date_st" & i)) = false then
query = query & " ,p_research_date_st = '" & request("p_research_date_st" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_research_date_end" & i)) = false then
query = query & " ,p_research_date_end = '" & request("p_research_date_end" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_part" & i)) = false then
query = query & " ,p_sur_part = '" & request("p_sur_part" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_field_process" & i)) = false then
query = query & " ,p_field_process = '" & request("p_field_process" & i) & "' "&VbCrlf
end if
query = query & " ,p_rsch_dept = " & request("p_rsch_dept" & i) & " "&VbCrlf
query = query & " ,p_field_dept = " & request("p_field_dept" & i) & " "&VbCrlf
query = query & " ,p_is_dept = " & request("p_is_dept" & i) & " "&VbCrlf
query = query & " ,p_it_dept = " & request("p_it_dept" & i) & " "&VbCrlf
if isEmpty(request("p_rsch_1_a" & i)) = false then
query = query & " ,p_rsch_1_a = '" & request("p_rsch_1_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_a" & i)) = false then
query = query & " ,p_rsch_2_a = '" & request("p_rsch_2_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_a" & i)) = false then
query = query & " ,p_rsch_3_a = '" & request("p_rsch_3_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_a" & i)) = false then
query = query & " ,p_rsch_4_a = '" & request("p_rsch_4_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_1_b" & i)) = false then
query = query & " ,p_rsch_1_b = '" & request("p_rsch_1_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_b" & i)) = false then
query = query & " ,p_rsch_2_b = '" & request("p_rsch_2_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_b" & i)) = false then
query = query & " ,p_rsch_3_b = '" & request("p_rsch_3_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_b" & i)) = false then
query = query & " ,p_rsch_4_b = '" & request("p_rsch_4_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_1_c" & i)) = false then
query = query & " ,p_rsch_1_c = '" & request("p_rsch_1_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_c" & i)) = false then
query = query & " ,p_rsch_2_c = '" & request("p_rsch_2_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_c" & i)) = false then
query = query & " ,p_rsch_3_c = '" & request("p_rsch_3_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_c" & i)) = false then
query = query & " ,p_rsch_4_c = '" & request("p_rsch_4_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_1" & i)) = false then
query = query & " ,p_sv_1 = '" & request("p_sv_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_2" & i)) = false then
query = query & " ,p_sv_2 = '" & request("p_sv_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_3" & i)) = false then
query = query & " ,p_sv_3 = '" & request("p_sv_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_4" & i)) = false then
query = query & " ,p_sv_4 = '" & request("p_sv_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_1" & i)) = false then
query = query & " ,p_punch_1 = '" & request("p_punch_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_2" & i)) = false then
query = query & " ,p_punch_2 = '" & request("p_punch_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_3" & i)) = false then
query = query & " ,p_punch_3 = '" & request("p_punch_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_4" & i)) = false then
query = query & " ,p_punch_4 = '" & request("p_punch_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_1" & i)) = false then
query = query & " ,p_verify_1 = '" & request("p_verify_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_2" & i)) = false then
query = query & " ,p_verify_2 = '" & request("p_verify_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_3" & i)) = false then
query = query & " ,p_verify_3 = '" & request("p_verify_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_4" & i)) = false then
query = query & " ,p_verify_4 = '" & request("p_verify_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_1" & i)) = false then
query = query & " ,p_code_1 = '" & request("p_code_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_2" & i)) = false then
query = query & " ,p_code_2 = '" & request("p_code_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_3" & i)) = false then
query = query & " ,p_code_3 = '" & request("p_code_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_4" & i)) = false then
query = query & " ,p_code_4 = '" & request("p_code_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_1" & i)) = false then
query = query & " ,p_dp_1 = '" & request("p_dp_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_2" & i)) = false then
query = query & " ,p_dp_2 = '" & request("p_dp_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_3" & i)) = false then
query = query & " ,p_dp_3 = '" & request("p_dp_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_4" & i)) = false then
query = query & " ,p_dp_4 = '" & request("p_dp_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_1" & i)) = false then
query = query & " ,p_it_1 = '" & request("p_it_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_2" & i)) = false then
query = query & " ,p_it_2 = '" & request("p_it_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_3" & i)) = false then
query = query & " ,p_it_3 = '" & request("p_it_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_4" & i)) = false then
query = query & " ,p_it_4 = '" & request("p_it_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_date_st" & i)) = false then
query = query & " ,p_rsch_date_st = '" & request("p_rsch_date_st" & i)
if request("p_rsch_date_st" & i) <> "" then
query = query & " " & request("p_rsch_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_date_end" & i)) = false then
query = query & " ,p_rsch_date_end = '" & request("p_rsch_date_end" & i)
if request("p_rsch_date_end" & i) <> "" then
query = query & " " & request("p_rsch_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_field_date_st" & i)) = false then
query = query & " ,p_field_date_st = '" & request("p_field_date_st" & i)
if request("p_field_date_st" & i) <> "" then
query = query & " " & request("p_field_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_field_date_end" & i)) = false then
query = query & " ,p_field_date_end = '" & request("p_field_date_end" & i)
if request("p_field_date_end" & i) <> "" then
query = query & " " & request("p_field_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_punch_date_st" & i)) = false then
query = query & " ,p_punch_date_st = '" & request("p_punch_date_st" & i)
if request("p_punch_date_st" & i) <> "" then
query = query & " " & request("p_punch_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_punch_date_end" & i)) = false then
query = query & " ,p_punch_date_end = '" & request("p_punch_date_end" & i)
if request("p_punch_date_end" & i) <> "" then
query = query & " " & request("p_punch_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_verify_date_st" & i)) = false then
query = query & " ,p_verify_date_st = '" & request("p_verify_date_st" & i)
if request("p_verify_date_st" & i) <> "" then
query = query & " " & request("p_verify_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_verify_date_end" & i)) = false then
query = query & " ,p_verify_date_end = '" & request("p_verify_date_end" & i)
if request("p_verify_date_end" & i) <> "" then
query = query & " " & request("p_verify_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_code_date_st" & i)) = false then
query = query & " ,p_code_date_st = '" & request("p_code_date_st" & i)
if request("p_code_date_st" & i) <> "" then
query = query & " " & request("p_code_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_code_date_end" & i)) = false then
query = query & " ,p_code_date_end = '" & request("p_code_date_end" & i)
if request("p_code_date_end" & i) <> "" then
query = query & " " & request("p_code_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_dp_date_st" & i)) = false then
query = query & " ,p_dp_date_st = '" & request("p_dp_date_st" & i)
if request("p_dp_date_st" & i) <> "" then
query = query & " " & request("p_dp_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_dp_date_end" & i)) = false then
query = query & " ,p_dp_date_end = '" & request("p_dp_date_end" & i)
if request("p_dp_date_end" & i) <> "" then
query = query & " " & request("p_dp_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_it_date_st" & i)) = false then
query = query & " ,p_it_date_st = '" & request("p_it_date_st" & i)
if request("p_it_date_st" & i) <> "" then
query = query & " " & request("p_it_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_it_date_end" & i)) = false then
query = query & " ,p_it_date_end = '" & request("p_it_date_end" & i)
if request("p_it_date_end" & i) <> "" then
query = query & " " & request("p_it_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_date" & i)) = false then
query = query & " ,p_premeet_date = '" & request("p_premeet_date" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_time" & i)) = false then
query = query & " ,p_premeet_time = '" & request("p_premeet_time" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_place" & i)) = false then
query = query & " ,p_premeet_place = '" & request("p_premeet_place" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_date" & i)) = false then
query = query & " ,p_ot_date = '" & request("p_ot_date" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_time" & i)) = false then
query = query & " ,p_ot_time = '" & request("p_ot_time" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_place" & i)) = false then
query = query & " ,p_ot_place = '" & request("p_ot_place" & i) & "' "&VbCrlf
end if
query = query & " ,p_sur_memo = '" & request("p_sur_memo" & i) & "' "&VbCrlf
query = query & " ,p_progress_status = '" & request("p_progress_status" & i) & "' "&VbCrlf
query = query & " ,p_progress_flag = '" & p_progress_flag(i) & "' "&VbCrlf
query = query & " ,p_input_complete = '" & p_input_complete(i) & "' "&VbCrlf
query = query & "WHERE p_sn = '" & p_sn & "' and p_method_cd = " & request("p_method_cd" & i)&VbCrlf
query = query & "AND p_index = " & request("p_index" & i) & " "&VbCrlf
' response.write "query : " & query & "<br/>"
adoconn.Execute query
query = " DELETE T_PROJECT_INVOLVE_RATE "
query = query & " WHERE p_sn = '"& p_sn &"' and p_child_sn = '"& request("p_child_sn" & i) &"' "
adoconn.Execute query
' response.write "query : " & query & "<br/>"
query = "INSERT INTO [project2].[dbo].[T_PROJECT_INVOLVE_RATE] "
query = query & " ([p_sn],[p_child_sn] "
query = query & " ,[involve_1_a],[involve_1_b],[involve_1_c] "
query = query & " ,[involve_2_a],[involve_2_b],[involve_2_c] "
query = query & " ,[involve_3_a],[involve_3_b],[involve_3_c] "
query = query & " ,[involve_4_a],[involve_4_b],[involve_4_c] "
query = query & " ,[input_dt]) "
query = query & " VALUES ( "
query = query & " '" & p_sn & "', '" & request("p_child_sn" & i) & "' "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40, getdate() )"
adoconn.Execute query
' response.write "query : " & query & "<br/>"
if request("p_sub_type") = "M" then
p_child_sn = "Multi"
end if
if request("p_rsch_1_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_a" & i ) &"','auto','1','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_a" & i ) &"','auto','2','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_a" & i ) &"','auto','3','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_a" & i ) &"','auto','4','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_1_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_b" & i ) &"','auto','5','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_b" & i ) &"','auto','6','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_b" & i ) &"','auto','7','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_b" & i ) &"','auto','8','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_1_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_c" & i ) &"','auto','9','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_c" & i ) &"','auto','10','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_c" & i ) &"','auto','11','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_c" & i ) &"','auto','12','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_1" & i ) &"','auto','13','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_2" & i ) &"','auto','14','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_3" & i ) &"','auto','15','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_4" & i ) &"','auto','16','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_1" & i ) &"','auto','33','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_2" & i ) &"','auto','34','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_3" & i ) &"','auto','35','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_4" & i ) &"','auto','36','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_1" & i ) &"','auto','21','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_2" & i ) &"','auto','22','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_3" & i ) &"','auto','23','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_4" & i ) &"','auto','24','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_1" & i ) &"','auto','17','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_2" & i ) &"','auto','18','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_3" & i ) &"','auto','19','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_4" & i ) &"','auto','20','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_1" & i ) &"','auto','25','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_2" & i ) &"','auto','26','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_3" & i ) &"','auto','27','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_4" & i ) &"','auto','28','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_1" & i ) &"','auto','29','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_2") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_2" & i ) &"','auto','30','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_3") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_3" & i ) &"','auto','31','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_4") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_4" & i ) &"','auto','32','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
'response.Write query
'job_projectlist 중복제거
query = " delete from Job_ProjectList "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " and p_pre_sn in ( "
query = query & " select jp1.p_pre_sn "
query = query & " from Job_ProjectList jp1 inner join ( "
query = query & " select MAX(p_pre_sn) as p_pre_sn, p_user "
query = query & " from Job_ProjectList "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " group by p_user "
query = query & " having COUNT(*) > 1 "
query = query & " ) jp2 on jp1.p_user = jp2.p_user and jp1.p_pre_sn <> jp2.p_pre_sn "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " ) "
adoconn.Execute query
Next
'프로젝트 관리에 자동 맵핑시켜주는 기능 (2015-04-24)
'response.Write "p_sn : " & p_sn & "<BR>"
'response.Write "p_child_sn : " & p_child_sn & "<BR>"
'response.Write "p_method_cd : " & p_method_cd & "<BR>"
'==========================================알림을 위해 수정 후 Data를 변수에 담아 놓기==========================================
afterRs.Open alarmQuery, adoConn, 3
'========================================== 전 후 비교 쿼리=====================================================================
'response.Write beforeRs.fields.count '필드 개수
'response.Write beforeRs.fields(i).Name '필드 명
for i = 0 To beforeRs.fields.count - 1
'response.Write beforeRs.fields(i)
'response.Write "//"
'response.Write afterRs.fields(i)
'response.Write "<br />"
'response.Write alarmMap.Item(beforeRs.fields(i).Name)
if cstr(beforeRs.fields(i)) <> cstr(afterRs.fields(i)) and alarmMap.Item(beforeRs.fields(i).Name) <> "" then
query = ""
query = query & " insert into Intranet_Alarm Values "
query = query & " ( "
query = query & " '" & request("p_child_sn1") & "', "
query = query & " '" & beforeRs.fields(i).Name & "', "
query = query & " '" & alarmMap.Item(beforeRs.fields(i).Name) & "', "
query = query & " '" & beforeRs.fields(i) & "', "
query = query & " '" & afterRs.fields(i) & "', "
query = query & " '" & replace(afterRs.fields("p_rsch_a") & "," & afterRs.fields("p_rsch_b") & "," & afterRs.fields("p_rsch_c") & "," & afterRs.fields("p_sv") & "," & afterRs.fields("p_punch") & "," & afterRs.fields("p_verify") & "," & afterRs.fields("p_code") & "," & afterRs.fields("p_dp") & "," & afterRs.fields("p_it"), session("User_Number"), "") & "' "
query = query & " ) "
'response.Write query
adoconn.Execute query
end if
Next
beforeRs.close
afterRs.close
'===============================================================================================================================
%>
<html>
<script>
function goit() {
var p_sn = "<%=p_sn%>";
// alert('수정되었습니다.' + "//" + document.pms.p_sub_type.value);
alert('수정되었습니다.');
// if (x == 1)
// {
// alert('<%=edit_reason%>을 수정하였으므로 계약보고서 및 직접비 결재가 취소됩니다.\n\n다시 결재진행 하시기 바랍니다.\n\n담당SV에게 이사실을 통보하여 직접비 결재를 다시 받아야 합니다.');
// //alert('계약액을 수정하였으므로 계약보고서 결재가 취소됩니다.\n\n다시 결재진행 하시기 바랍니다.');
// }
// if (c == 1)
// {
// alert('해당 프로젝트의 면접원 수당이 입력되어 있으므로 예상기간은 수정되지 않습니다.');
// }
document.pms.action = 'project_list2_dep_2014.asp';
document.pms.submit();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
<input type="hidden" name="teamname" value="<%=tmp_teamname%>">
<input type="hidden" name="p_sub_type" value="<%=p_sub_type%>">
<% If p_sub_type = "C" Then %>
<input type="hidden" name="p_child_sn" style="width:150;" value="<%=Request("p_child_sn1") %>">
<input type="hidden" name="p_method_cd" style="width:150;" value="<%=Request("p_method_cd1")%>">
<% End If %>
</form>
</body>
</html>