101 lines
5.2 KiB
Plaintext
101 lines
5.2 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
|
|
|
|
Response.CharSet = "EUC-KR" '한글
|
|
Response.AddHeader "Pragma","no-cache"
|
|
Response.AddHeader "cache-control", "no-staff"
|
|
Response.Expires = -1
|
|
|
|
If request("div") = "1" Then
|
|
Query = " select p_child_sn, p_subject from dbo.T_PROJECT_METHOD "
|
|
Query = Query & " where convert(int,left(p_child_sn,2))>=16 "
|
|
Query = Query & " and (p_field_complete is null or p_dp_complete is null) and p_progress_status >= '006' " '-- 실사완료(1), 미완료(null)
|
|
Query = Query & " and "
|
|
Query = Query & " ':'+isnull(p_sv_1, '')+':'+isnull(p_sv_2, '')+':'+isnull(p_sv_3, '')+':'+isnull(p_sv_4, '')+"
|
|
Query = Query & " ':'+isnull(p_punch_1, '')+':'+isnull(p_punch_2, '')+':'+isnull(p_punch_3, '')+':'+isnull(p_punch_4, '')+"
|
|
Query = Query & " ':'+isnull(p_verify_1, '')+':'+isnull(p_verify_2, '')+':'+isnull(p_verify_3, '')+':'+isnull(p_verify_4, '')+"
|
|
Query = Query & " ':'+isnull(p_code_1, '')+':'+isnull(p_code_2, '')+':'+isnull(p_code_3, '')+':'+isnull(p_code_4, '')+':' "
|
|
Query = Query & " like ('%:" & request("sv") & ":%') "
|
|
Query = Query & " order by p_child_sn asc, p_subject asc "
|
|
|
|
Rs.open Query, adoconn, adopenstatic, adlockreadonly
|
|
response.Write "<option value=''>= 프로젝트 선택 =</option>"
|
|
If Rs.recordcount > 0 Then
|
|
For i = 1 To Rs.recordcount
|
|
response.Write "<option value=""" & Rs("p_child_sn") & """>[" & Rs("p_child_sn") & "]" & Rs("p_subject") & "</option>"
|
|
Rs.movenext
|
|
Next
|
|
Else
|
|
response.Clear
|
|
response.Write "NONE"
|
|
End if
|
|
Rs.close
|
|
|
|
ElseIf request("div") = "2" Then
|
|
subQuery=""
|
|
If fnc_user_level("0", "내근직업무1", request("sv")) = "1" Then ' AS, 컨택, 해독원, 진행보조 (1,3,8,9) + 에디팅, 코딩, 펀치 (2,4,7) --> S.V ##### 2018-02-23 김종휘
|
|
'subQuery = " AND d_cost_code IN (1, 3/*, 8, 9*/) "
|
|
subQuery = " AND d_cost_code IN ('1', '2', '3', '7', '8', '9') "
|
|
ElseIf fnc_user_level("0", "내근직업무2", request("sv")) = "1" Then ' 에디팅, 펀치 (2,4,7) --> S.V ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('2', '7') "
|
|
ElseIf fnc_user_level("0", "내근직업무3", request("sv")) = "1" Then ' 검증, 감청 (5,6) -->한진수, 내근직업무3(검증, 감청) ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('5', '6') "
|
|
' request("sv") => (p_sv_no) 내근직 테이블
|
|
ElseIf fnc_user_level("0", "내근직업무4", request("sv")) = "1" Then ' 코딩 --> 김유경(DP), 내근직업부4(코딩) ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('4') "
|
|
End if
|
|
|
|
Query = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
|
|
Query = Query & " WHERE d_cost_kind in ('field','dp') AND d_cost_useyn = 'Y' AND d_cost_parents = '2' "
|
|
Query = Query & " " & subQuery
|
|
Query = Query & " ORDER BY attribute01 "
|
|
|
|
Rs.open Query, adoconn, adopenstatic, adlockreadonly
|
|
response.Write "<option value=''>= 세부근무 선택 =</option>"
|
|
If Rs.recordcount > 0 Then
|
|
For i = 1 To Rs.recordcount
|
|
response.Write "<option value=""" & Rs("d_cost_code") & "@" & Rs("d_cost_name") & """>" & Rs("d_cost_name") & "</option>"
|
|
Rs.movenext
|
|
Next
|
|
Else
|
|
response.Clear
|
|
response.Write "NONE"
|
|
End if
|
|
Rs.close
|
|
ElseIf request("div") = "3" Then
|
|
subQuery=""
|
|
If fnc_user_level("0", "내근직업무1", request("sv")) = "1" Then ' AS, 컨택, 해독원, 진행보조 (1,3,8,9) + 에디팅, 코딩, 펀치 (2,4,7) --> S.V ##### 2018-02-23 김종휘
|
|
'subQuery = " AND d_cost_code IN (1, 3/*, 8, 9*/) "
|
|
subQuery = " AND d_cost_code IN ('1', '2', '3', '7', '8', '9') "
|
|
ElseIf fnc_user_level("0", "내근직업무2", request("sv")) = "1" Then ' 에디팅, 펀치 (2,4,7) --> S.V ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('2', '7') "
|
|
ElseIf fnc_user_level("0", "내근직업무3", request("sv")) = "1" Then ' 검증, 감청 (5,6) -->한진수, 내근직업무3(검증, 감청) ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('5', '6') "
|
|
' request("sv") => (p_sv_no) 내근직 테이블
|
|
ElseIf fnc_user_level("0", "내근직업무4", request("sv")) = "1" Then ' 코딩 --> 김유경(DP), 내근직업부4(코딩) ##### 2018-02-23 김종휘
|
|
subQuery = " AND d_cost_code IN ('4') "
|
|
End if
|
|
|
|
Query = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
|
|
Query = Query & " WHERE d_cost_kind in ('field','dp') AND d_cost_useyn = 'Y' AND d_cost_parents = '2' "
|
|
Query = Query & " " & subQuery
|
|
Query = Query & " ORDER BY attribute01 "
|
|
|
|
Rs.open Query, adoconn, adopenstatic, adlockreadonly
|
|
response.Write "<option value=''>= 세부근무 선택 =</option>"
|
|
If Rs.recordcount > 0 Then
|
|
For i = 1 To Rs.recordcount
|
|
response.Write "<option value=""" & Rs("d_cost_code") & "@" & Rs("d_cost_name") & """>" & Rs("d_cost_name") & "</option>"
|
|
Rs.movenext
|
|
Next
|
|
Else
|
|
response.Clear
|
|
response.Write "NONE"
|
|
End if
|
|
Rs.close
|
|
Else
|
|
response.Clear
|
|
response.Write "NONE"
|
|
End if
|
|
%> |