<% set rsp = server.CreateObject("ADODB.RECORDSET") dim tmp_depart '연구부서 list배열 dim method() '조사방법 dim Sample_range(6,3) '샘플수 dim field_rank(3,2) '실사 난이도 dim category '카테고리 dim types '업종 dim tmp_field_admin Dim tmp_area_part(5) Dim tmp_view_grade(5, 2) Dim tmp_survey_part(2) Dim tmp_survey_times(10) Dim tmp_field_process(3) '경영지원실 실사경비 담당(경영전략실) if int(Session("Depart_Code")) = 18 then tmp_field_admin = "1" else tmp_field_admin = "0" end if tmp_area_part(1) = "서울" tmp_area_part(2) = "수도권" tmp_area_part(3) = "광역시" tmp_area_part(4) = "전국" tmp_area_part(5) = "기타" tmp_view_grade(1, 1) = "1" tmp_view_grade(2, 1) = "2" tmp_view_grade(2, 2) = "연구부서" tmp_view_grade(3, 1) = "3" tmp_view_grade(4, 1) = "4" tmp_view_grade(4, 2) = "부서장급" tmp_view_grade(5, 1) = "5" tmp_view_grade(5, 2) = "임원등급" tmp_survey_part(1) = "리스트" tmp_survey_part(2) = "비리스트" tmp_survey_times(1) = "10분" tmp_survey_times(2) = "20분" tmp_survey_times(3) = "30분" tmp_survey_times(4) = "40분" tmp_survey_times(5) = "50분" tmp_survey_times(6) = "1시간" tmp_survey_times(7) = "1시간 30분" tmp_survey_times(8) = "2시간" tmp_survey_times(9) = "2시간 30분" tmp_survey_times(10)= "3시간" tmp_field_process(1) = "자체" tmp_field_process(2) = "외주" tmp_field_process(3) = "자체&외주" tmp_colspan = 5 p_sn = request("p_sn") teamname = request("teamname") 'Response.Write today & "
" '------------------------------------------------------ '연구부서 list목록 q = "SELECT max(d_mcode) as max_code " q = q & "FROM Depart " rsp.Open q, adoConn, 1 tmp_max = rsp("max_code") rsp.Close query = "SELECT * " query = query & "FROM Depart " query = query & "WHERE d_mcode>='0' " query = query & " AND d_yes_no='Y' " query = query & "ORDER BY d_mcode ASC " rsp.open query, adoConn, 1 redim tmp_depart(int(tmp_max),2) for i = 1 to int(rsp.RecordCount) tmp_depart(int(rsp("d_mcode")),1) = rsp("d_mcode") tmp_depart(int(rsp("d_mcode")),2) = rsp("d_mname_shot") rsp.MoveNext next rsp.close '------------------------------------------------------ '조사방법 query = "select * from p_Method order by code1 " rsp.Open query, adoConn, 1 i = rsp.RecordCount redim method(i,2) i=0 method(0,0) = request("p_method") '선택된 조사방법 method(0,1) = "0" method(0,2) = "== 전 체 ==" do while not rsp.EOF i = i + 1 method(i,1) = rsp("code1") method(i,2) = rsp("name1") rsp.MoveNext loop rsp.Close '------------------------------------------------------ ''샘플수의 범위 Sample_range(0,0) = request("p_sample") Sample_range(0,1) = "0" Sample_range(0,2) = "   == 전 체 ==" Sample_range(1,1) = "1" Sample_range(1,2) = "         ~  500" Sample_range(1,3) = "500" Sample_range(2,1) = "2" Sample_range(2,2) = "   501 ~ 1,000" Sample_range(2,3) = "1,000" Sample_range(3,1) = "3" Sample_range(3,2) = "1,001 ~ 1,500" Sample_range(3,3) = "1,500" Sample_range(4,1) = "4" Sample_range(4,2) = "1,501 ~ 2,000" Sample_range(4,3) = "2,000" Sample_range(5,1) = "5" Sample_range(5,2) = "2,001 ~ 2,500" Sample_range(5,3) = "2,500" Sample_range(6,1) = "6" Sample_range(6,2) = "2,501 ~ " Sample_range(6,3) = "2,501" '------------------------------------------------------ '실사 난이도별 field_rank(0,0) = request("p_field_rank") field_rank(0,1) = "0" field_rank(0,2) = "== 전 체 ==" field_rank(1,1) = "하" field_rank(1,2) = "하" field_rank(2,1) = "중" field_rank(2,2) = "중" field_rank(3,1) = "상" field_rank(3,2) = "상" '------------------------------------------------------ 'category list query = "SELECT * " query = query & "FROM p_category " query = query & "ORDER BY sort_key " rsp.Open query, adoConn, 1 redim category(int(rsp.RecordCount), 2) for i = 1 to rsp.RecordCount category(i,1) = rsp("code1") category(i,2) = rsp("name1") rsp.MoveNext next rsp.Close '------------------------------------------------------ '====================================================== '검색 query 만들기 '====================================================== query = "SELECT * " query = query & "FROM project " query = query & "WHERE p_sn='" & p_sn & "' " rsc.Open query, adoConn, 1 if rsc.RecordCount > 0 then if method(0, 0) <> "" then tmp_method = method(0, 0) else tmp_method = rsc("p_method") end if '전산부서까지 프로젝트 등록이 완료 되었는지 확인함 (tmp_regok) '완료되지 않았다면 로그인자가 어느 화면을 봐야 하는지 판단함 (tmp_view) if trim(rsc("p_dper")) <> "" then tmp_regok = 1 '프로젝트 3단계(연구,실사,전사) 등록 완료 tmp_view = 0 '전체를 보여줌 else tmp_regok = 0 '프로젝트 등록중 query = "SELECT * " query = query & "FROM depart " query = query & "WHERE d_code = '" & Session("Depart_Code") & "' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then tmp_view = rsp("d_mcode") '해당부서를 가져옴 else tmp_view = 99 '99는 기본정보만 볼 수 있음 end if rsp.Close end if if tmp_admin_chk = "1" then tmp_view = 0 '개발자라면 전체를 볼 수 있게 함 end if query = "SELECT * " query = query & "FROM depart " query = query & "WHERE d_code = '" & Session("Depart_Code") & "' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then tmp_login_code = rsp("d_mcode") '해당부서를 가져옴 else tmp_login_code = "0" end if rsp.Close if request("p_types1") <> "" then p_types1 = request("p_types1") else p_types1 = rsc("p_types1") end if if request("p_types2") <> "" then p_types2 = request("p_types2") else p_types2 = rsc("p_types2") end if if request("p_types3") <> "" then p_types3 = request("p_types3") else p_types3 = rsc("p_types3") end if y = request("y") if y = "1" then p_types2 = "0" p_types3 = "0" elseif y = "2" then p_types3 = "0" end if ''12년도와 13년도의 부서가 다르기에...(2013년 4월 16일) if mid(p_sn,1,2) = "12" then if cint(tmp_login_code) >= 31 and cint(tmp_login_code) <= 33 then tmp_login_code = "1" tmp_view = "1" elseif cint(tmp_login_code) >= 35 and cint(tmp_login_code) <= 36 then tmp_login_code = "2" tmp_view = "2" end if end if %> <%=GNB_TITLE%>
프로젝트 번호 <%=rsc("p_sn")%> "> 프로젝트 명 ">
컨택일정 "> 발생경로
클라이언트 명 <% query = "SELECT * " query = query & "FROM [Client] " query = query & "WHERE c_code='" & rsc("p_cli_company") & "' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then tmp_cli_company = rsp("c_name") end if rsp.Close %> "> 클라이언트 구분
클라이언트 담당자 <% query = "SELECT * " query = query & "FROM Client_People " query = query & "WHERE c_code='" & rsc("p_cli_company") & "' " query = query & " AND cp_code='" & rsc("p_cp_code") & "' " 'Response.Write query & "
" rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then tmp_cp_name = rsp("cp_name") tmp_cli_depart = rsp("cp_depart") end if rsp.Close %> ">
클라이언트 타입 ">
클라이언트 부서 " readonly title ="회의장소"> " readonly title ="회의 내용">

제안일정 "> 조사목적 " readonly style="width:100%">
업종 <% if p_types1 <> "" then %>     <% if p_types2 <> "" and p_types2 <> "0" then %>     <% end if 'if p_types2 <> "" then %> <% end if 'if p_types1 <> "" then %>

<% if rsc("p_reg_mana") = "1" then %> 현재 프로젝트 최종완료 중 입니다 <% elseif rsc("p_reg_rsch") = "1" then %> 현재 프로젝트 완료 중 입니다 <% elseif tmp_regok = 1 then %> 현재 프로젝트 진행 중 입니다. <% else if trim(rsc("p_sv")) <> "" then 'tmp_txt = "전산부서" tmp_txt = "정보분석팀" tmp_reg = 3 elseif trim(rsc("p_rsch_1")) <> "" then tmp_txt = "실사부서" tmp_reg = 2 else tmp_txt = "연구부서" tmp_reg = 1 end if %> 현재 <%=tmp_txt%> 등록 진행 중 입니다. <% end if %>

<% if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "23" and tmp_method <> "24" then %> <% end if %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% end if 'if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %> <% if trim(rsc("p_rsch_1")) <> "" then '연구파트가 완료 되어야 실사가 자신의 것을 볼 수 있음 if tmp_view = 12 or tmp_view = 16 or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 실사부서원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %> <% if tmp_regok = 1 or tmp_admin_chk = "1" then %> <% else %> <% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "24" then %> <% end if %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% end if 'if tmp_regok = 1 or tmp_admin_chk = "1" then %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% p_budget = rsc("p_budget") pay_estimate = formatnumber(rsc("p_esti_cost")+rsc("p_esti_cost_research"), 0) pay_estimate_proportion = formatnumber((pay_estimate / CDbl(p_budget)) * 100, 2) pay_actual = formatnumber(rsc("p_real_cost")+rsc("p_real_cost_research"), 0) pay_actual_proportion = formatnumber((pay_actual / CDbl(p_budget)) * 100, 2) '직접비 결재 상신이 되어 있어야 하고 부서장 이상의 결제가 되어 있어야 함 query = "SELECT * " query = query & "FROM Document as a " query = query & " INNER JOIN 문서내용 as b on a.d_no = b.문서번호 " 'query = query & "WHERE a.d_no='" & d_no & "' " query = query & "WHERE a.d_no<>'' " query = query & " AND b.p_sn = '" & p_sn & "' " query = query & " AND b.del_yes_no='no' " query = query & " AND a.d_delok = 'N' " query = query & " AND a.d_name = '직접비' " query = query & "ORDER BY a.d_sn DESC " ''2014년 1월 15일부로 직접비 결재를 하지 않기에 단순히 실사 직접비가 들어있나만 확인하기 query = "select * from direct_cost where p_sn = '" & p_sn & "' " & _ " and del_yes_no = 'no'" rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then else pay_estimate = "" pay_estimate_proportion = "" pay_actual = "" pay_actual_proportion = "" %> <% end if rsp.Close if tmp_admin_chk = "1" and pay_estimate = "" then '개발자라면 직접비 체크로직을 넘길 수 있도록 함 pay_estimate = "1" 'Response.Write "sadfsfsda" end if %> <% end if 'if tmp_view = 12 or tmp_admin_chk = "1" or tmp_regok = 1 then end if 'if trim(rsc("p_rsch_1")) <> "" then %> <% if trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then '연구파트와 실사파트가 완료 되어야 전산부서는 자신의 것을 볼 수 있음 if tmp_view = 15 OR tmp_view = 17 or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 전산부서원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %> <% if tmp_regok = 1 or tmp_admin_chk = "1" then %> <% else %> <% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "24" then %> <% end if %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% end if 'if tmp_regok = 1 or tmp_admin_chk = "1" then %> <% end if 'if tmp_view = 15 or tmp_admin_chk = "1" or tmp_regok = 1 then end if 'if trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then %> <% if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %> <% end if 'if tmp_view = 2 or tmp_admin_chk = "1" or tmp_regok = 1 then %>
조사방법
담당연구원  정 :  부 :  보1 :  보2 :
카테고리 <% if tmp_admin_chk = "1" then %>         <% end if %>
표본수 value="1" <%elseif clng(rsc("p_sample")) = 0 then %> value="1" <%else%> value="<%=rsc("p_sample")%>" <%end if%> > 표본추출방법 " style="width:100%;">
계약일자 " readonly onClick="winopn('/include/calendar.html?actval=p_conv_date')" style="cursor:pointer"> 계약액 <% if rsc("p_budget") <> "" then tmp_len = len(rsc("p_budget")) for i = 1 to int(tmp_len) if i mod 3 = 1 and i <> 1 then tmp_text = "," & tmp_text end if tmp_text = left(right(rsc("p_budget"),i), 1) & tmp_text next end if if clng(tmp_text) = 0 then tmp_text=1 end if %> 원 (VAT 별도)
조사대상   ">
조사지역   ">
프로젝트 관련 기간설정
계약기간 " onClick="winopn('/include/calendar.html?actval=p_convdate_st')" style="cursor:pointer"> - " onClick="winopn('/include/calendar.html?actval=p_convdate_end')" style="cursor:pointer"> 계약기간(실) <% if not isnull(rsc("p_convdate_st2")) and rsc("p_convdate_st2") <> "" then Response.Write "" & rsc("p_convdate_st2") & " - " & rsc("p_convdate_end2") & "" end if %>
보고서 작성기간 " onClick="winopn('/include/calendar.html?actval=p_report_st')" style="cursor:pointer"> - " onClick="winopn('/include/calendar.html?actval=p_report_end')" style="cursor:pointer"> 보고서 작성기간(실) <% if not isnull(rsc("p_report_st2")) and rsc("p_report_st2") <> "" then Response.Write "" & rsc("p_report_st2") & " - " & rsc("p_report_end2") & "" end if %>
내부미팅 일자 " onClick="winopn('/include/calendar.html?actval=p_premeet_date')" style="cursor:pointer"> 내부미팅 일자(실) <% if not isnull(rsc("p_premeet_date2")) and rsc("p_premeet_date2") <> "" then Response.Write "" & rsc("p_premeet_date2") & "" end if %>
면접원 OT일 " onClick="winopn('/include/calendar.html?actval=p_ot_date')" style="cursor:pointer"> 면접원 OT일(실) <% if not isnull(rsc("p_ot_date2")) and rsc("p_ot_date2") <> "" then Response.Write "" & rsc("p_ot_date2") & "" end if %>
실사기간 (코딩+에디팅) " onClick="winopn('/include/calendar.html?actval=p_field_st')" style="cursor:pointer"> - " onClick="winopn('/include/calendar.html?actval=p_field_end')" style="cursor:pointer"> 실사기간(실) (코딩+에디팅) <% if not isnull(rsc("p_field_st2")) and rsc("p_field_st2") <> "" then Response.Write "" & rsc("p_field_st2") & " - " & rsc("p_field_end2") & "" end if %>
펀치기간 " onClick="winopn('/include/calendar.html?actval=p_punch_st')" style="cursor:pointer"> - " onClick="winopn('/include/calendar.html?actval=p_punch_end')" style="cursor:pointer"> 펀치기간(실) <% if not isnull(rsc("p_punch_st2")) and rsc("p_punch_st2") <> "" then Response.Write "" & rsc("p_punch_st2") & " - " & rsc("p_punch_end2") & "" end if %>
DP 기간 " onClick="winopn('/include/calendar.html?actval=p_dp_st')" style="cursor:pointer"> - " onClick="winopn('/include/calendar.html?actval=p_dp_end')" style="cursor:pointer"> DP기간(실) <% if not isnull(rsc("p_dp_st2")) and rsc("p_dp_st2") <> "" then Response.Write "" & rsc("p_dp_st2") & " - " & rsc("p_dp_end2") & "" end if %>
조사방법 <% q = "SELECT * " q = q & "FROM p_method " q = q & "WHERE code1 = '" & tmp_method & "' " q = q & "ORDER BY name1 " rsp.Open q, adoConn, 1 if rsp.RecordCount > 0 then Response.Write "" & rsp("name1") & "" else Response.Write "" & "DB오류" & "" end if rsp.Close %>
계약일자 <%=rsc("p_conv_date")%> 계약기간 <%=rsc("p_convdate_st")%> - <%=rsc("p_convdate_end")%>
내부미팅 일자 <%=rsc("p_premeet_date")%> 면접원 OT일 <%=rsc("p_ot_date")%>
실사시작일 <%=rsc("p_field_st")%> 실사종료일 (코딩+에디팅) <%=rsc("p_field_end")%>
펀치기간 <%=rsc("p_punch_st")%> - <%=rsc("p_punch_end")%> DP 기간 <%=rsc("p_dp_st")%> - <%=rsc("p_dp_end")%>
담당 SV 실사난이도
문항수 (오픈) " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> ( <%=rsc("p_survey_open")%> ) 실제 조사샘플수 <%=rsc("p_sample")%>
담당 코더 담당 검증 <%'담당 검증은 유수연으로 고정하여 수정할 수 없도록 함%>
예상 직접비(연구+실사) <% if pay_estimate <> "" then %> <%=pay_estimate%> 원 <% end if %> 예상 직접비 비율 <% if pay_estimate_proportion <> "" then %> <%=pay_estimate_proportion%> % <% end if %>
실제 직접비(연구+실사) <% if pay_actual <> "" then %> <%=pay_actual%> 원 <% end if %> 실제 직접비 비율 <% if pay_actual_proportion <> "" then %> <%=pay_actual_proportion%> % <% end if %>
조사방법 <% q = "SELECT * " q = q & "FROM p_method " q = q & "WHERE code1 = '" & tmp_method & "' " q = q & "ORDER BY name1 " rsp.Open q, adoConn, 1 if rsp.RecordCount > 0 then Response.Write "" & rsp("name1") & "" else Response.Write "" & "DB오류" & "" end if rsp.Close %>
계약일자 <%=rsc("p_conv_date")%> 계약기간 <%=rsc("p_convdate_st")%> - <%=rsc("p_convdate_end")%>
내부미팅 일자 <%=rsc("p_premeet_date")%> 면접원 OT일 <%=rsc("p_ot_date")%>
실사시작일 <%=rsc("p_field_st")%> 실사종료일 (코딩+에디팅) <%=rsc("p_field_end")%>
펀치기간 <%=rsc("p_punch_st")%> - <%=rsc("p_punch_end")%> DP 기간 <%=rsc("p_dp_st")%> - <%=rsc("p_dp_end")%>
담당 전산 전산 난이도
SPSS 버젼
기타전달사항 (수정사유) <% if isnull(rsc("p_memo")) then tmp_area = "" else tmp_area = rsc("p_memo") end if %>
<% if tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 개발자라면 보여짐, 또는 3개부서 등록 완료 되면.. %>

<% if rsc("p_cross_app_yes_no") = "yes" then tmp_cross_app = "평가대상" tmp_cross_date = rsc("p_cross_app_end_date") else tmp_cross_app = "해당없음" tmp_cross_date = "" end if %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %> <% '### 20100127 수정 : 부서장은 각 연구원에 대한 프로젝트 영향도를 평가해야함 '### 뷰는 부서장이상 (다른 파트 임원은 어떻게 해야?) 'if tmp_admin_chk = "1" then if ((Session("Depart_Code") = rsc("p_depart") OR Session("teamplace") >= "5") AND Session("admin_Code") = "1" ) OR tmp_admin_chk = "1" then %> <% end if %> <% if rsc("p_reg_rsch") = "0" or isnull(rsc("p_reg_rsch")) then tmp = "미확정" tmp_a = "0" else tmp = "확정" tmp_a = "1" end if '확정버튼을 활성화 하기 위한 조건 (1. 관람등급, 2. 3개부서 파일업로드 완료, 3. 3개부서 등록 완료, 4. 3개부서 실제기간 입력완료) tmp_reg_rsch = 0 '1번 처리 if rsc("p_view_grade") = "" or isnull(rsc("p_view_grade")) then tmp_reg_1 = 0 else tmp_reg_1 = 1 end if '2번 처리 query = "SELECT * " query = query & "FROM file_log " query = query & "WHERE p_sn = '" & p_sn & "' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then '파일체크 로직 변경 (실사와 전산파일은 담당자의 유무로 체크함) if (int(rsc("p_sv")) > 99999000 OR rsc("p_sv") = "19999999") AND (int(rsc("p_coder")) > 99999000 OR rsc("p_coder") = "19999999") then '실사담당자 없음 tmp_fieldwork = "1" else 'sv나 코더 담당자 있음 if rsp("fieldwork") = "1" then tmp_fieldwork = "1" else tmp_fieldwork = "0" end if end if '2011년 2월 22일 수정 - 실사는 무조건 올린것으로 간주함 (파일체크 안함) tmp_fieldwork = "1" if (int(rsc("p_dper")) > 99999000 OR rsc("p_dper") = "19999999") then '전산담당자 없음 tmp_computer = "1" else '전산담당자 있음 if rsp("computer") = "1" then tmp_computer = "1" else tmp_computer = "0" end if end if if rsp.RecordCount > 0 then if rsp("research") = "1" and tmp_fieldwork = "1" and tmp_computer = "1" then tmp_reg_2 = 1 tmp_real_date = 1 else tmp_reg_2 = 0 tmp_real_date = 0 end if else tmp_reg_2 = 0 tmp_real_date = 0 end if else tmp_fieldwork = "0" tmp_computer = "0" tmp_reg_2 = 0 tmp_real_date = 0 end if rsp.Close '4번 처리 tmp_reg_4 = 0 if isnull(rsc("p_convdate_st2")) OR rsc("p_convdate_st2") = "" then '계약기간(연구파트) 없으면 안됨 tmp_reg_4 = 0 else tmp_reg_4 = 1 end if if isnull(rsc("p_field_st")) OR rsc("p_field_st") = "" then '실사기간(실사파트) 없으면 안됨 tmp_reg_4 = 0 else tmp_reg_4 = 1 end if if tmp_method <> "15" and tmp_method <> "16" then '조사방법 중 일부는 전산파트가 없을 수 있음 if isnull(rsc("p_dp_st2")) OR rsc("p_dp_st2") = "" then 'DP기간(전산파트) 없으면 안됨 tmp_reg_4 = 0 else tmp_reg_4 = 1 end if end if if tmp_reg_1 = 1 and tmp_reg_2 = 1 and tmp_reg_4 = 1 then tmp_reg_rsch = 1 else tmp_reg_rsch = 0 end if %>
크로스평가 해당 <% if Session("admin_Code") = "1" or tmp_admin_chk = "1" then '부서장이나 개발자라면 %> <% else Response.Write tmp_cross_app end if %> 크로스평가 마감일
업로드 기한 "" and not isnull(rsc("p_upload_date")) then Response.Write rsc("p_upload_date") else Response.Write "" end if %>" readonly onClick="winopn('/include/calendar.html?actval=p_upload_date')" style="cursor:pointer"> <% if tmp_admin_chk = "1" then '업로드 기한을 표시, %> <% end if %> 설문지 폐기일 " onClick="winopn('/include/calendar.html?actval=p_survey_date')" style="cursor:pointer"> <% if tmp_admin_chk = "1" then '업로드 기한을 표시, %> <% end if %>
연구원 영향도  정 : <% if rsc("p_rsch_2") <> "" then %>     부 : <% end if %> <% if rsc("p_rsch_3") <> "" then %>     보1 : <% end if %> <% if rsc("p_rsch_4") <> "" then %>     보2 : <% end if %>
관람등급 <% if Session("admin_Code") = "1" or tmp_admin_chk = "1" then '부서장이나 개발자라면 %> <% else if rsc("p_view_grade") = "" or isnull(rsc("p_view_grade")) then %> 현재 관람등급 미설정 중입니다. <% else %> 등급이 <%=tmp_view_grade(rsc("p_view_grade"), 2)%>으로 설정되었습니다. <% end if end if %> 연구부서 완료 <% 'if rsc("p_depart") = tmp_login_code or tmp_admin_chk = "1" then '내부서 프로젝트일 때만 확정할 수 있음, 개발자는 볼 수 있음 '### 100127 수정 : 내부서 프로젝트의 부서장만 클릭할 수 있음 if (Session("Depart_Code") = rsc("p_depart") AND Session("admin_Code") = "1") then' OR tmp_admin_chk = "1" then %>     checked <% end if %> onClick="autofnc()"> 진행중           checked <% end if %> <% if tmp_reg_rsch = 0 then %> disabled <% end if %> onClick="autofnc()"> 완료 <% else if tmp_a = "0" then tmp_imsi = "진행중" elseif tmp_a = "1" then tmp_imsi = "완료" end if %>     연구 <%=tmp_imsi%> <% end if %>
<% if (rsc("p_reg_rsch") = "1") and (Session("Depart_Code") = "18" or tmp_admin_chk = "1") then '최종완료(경영지원실) 용 if rsc("p_reg_mana") = "0" or isnull(rsc("p_reg_mana")) then tmp = "미확정" tmp_a = "0" else tmp = "확정" tmp_a = "1" end if query = "SELECT * " query = query & "FROM file_log " query = query & "WHERE p_sn = '" & p_sn & "' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then 'if rsp("research") = "1" and rsp("fieldwork") = "1" and rsp("computer") = "1" and rsp("manager") = "1" then if rsp("research") = "1" and tmp_fieldwork = "1" and tmp_computer = "1" and rsp("manager") = "1" then tmp_reg_2 = 1 else tmp_reg_2 = 0 end if else tmp_reg_2 = 0 end if rsp.Close if rsc("p_tax") = "0" then tmp_reg_2 = 0 end if '### 크로스평가 if tmp_reg_2 <> 0 then query = "SELECT a.*, B.insert_user_research AS insert_user_research, B.insert_user_sv AS insert_user_sv, " query = query & " B.insert_user_coder AS insert_user_coder, B.insert_user_dp AS insert_user_dp, " query = query & " B.insert_user_it AS insert_user_it " query = query & " FROM project a LEFT OUTER JOIN " query = query & " Cross_Appraisal b ON a.p_sn = b.p_sn " query = query & " where substring(a.p_field_end,1,4) = '" & sc_year & "' " '년도는 실사종료일을 기준으로함 query = query & " and (p_cross_app_yes_no = 'yes') " '크로스평가 해당 프로젝트만 query = query & " AND a.p_sn='" & p_sn & "' " rsp.Open query, adoconn, 1 if rsp.RecordCount > 0 then redim prj_list(1, 10) 'x:순서, y:1:프로젝트코드(p_sn), 2:프로젝트제목, , ' 3-7:이미평가했나 확인(1:평가,0:미평가) =>3:연구원, 4:수퍼바이저, 5:코딩, 6:dp, 7:it,8:마감기한일, 9:p_name, 10:담당자들(연구, sv, 코딩, dp, it) '크로스평가 해당 유무 tmp_i2 = 1 if isnull(rsp("insert_user_research")) then prj_list(tmp_i2,3) ="0" '미평가 else prj_list(tmp_i2,3) ="1" '평가 end if if isnull(rsp("insert_user_sv")) then prj_list(tmp_i2,4) ="0" '미평가 else prj_list(tmp_i2,4) ="1" '평가 end if if isnull(rsp("insert_user_coder")) then prj_list(tmp_i2,5) ="0" '미평가 else prj_list(tmp_i2,5) ="1" '평가 end if if isnull(rsp("insert_user_dp")) then prj_list(tmp_i2,6) ="0" '미평가 else prj_list(tmp_i2,6) ="1" '평가 end if if isnull(rsp("insert_user_it")) then prj_list(tmp_i2,7) ="0" '미평가 else prj_list(tmp_i2,7) ="1" '평가 end if if rsp("p_sv") = "19999999" or (rsp("p_sv")) >= "99999996" or trim(rsp("p_sv")) = "" or isnull(rsp("p_sv")) then '기타, 없음, 외주, 외부s/v, 배정이 안됐음 이면 prj_list(tmp_i2,4) = "2" end if if rsp("p_coder") = "19999999" or (rsp("p_coder")) >= "99999996" or trim(rsp("p_coder")) = "" or isnull(rsp("p_coder")) then '기타, 없음, 외주, 배정이 안됐음 이면 prj_list(tmp_i2,5) = "2" end if if rsp("p_dper") = "19999999" or (rsp("p_dper")) >= "99999996" or trim(rsp("p_dper")) = "" or isnull(rsp("p_dper")) then '기타, 없음, 외주, 배정이 안됐음 이면 prj_list(tmp_i2,6) = "2" end if if rsp("p_it") = "19999999" or (rsp("p_it")) >= "99999996" or trim(rsp("p_it")) = "" or isnull(rsp("p_it")) then '기타, 없음, 외주, 배정이 안됐음 이면 prj_list(tmp_i2,7) = "2" end if if prj_list(tmp_i2,3) = "0" or prj_list(tmp_i2,4) = "0" or prj_list(tmp_i2,5) = "0" or prj_list(tmp_i2,6) = "0" or prj_list(tmp_i2,7) = "0" then tmp_reg_2 = 0 end if else if rsc("p_cross_app_yes_no") = "yes" then tmp_reg_2 = 0 end if end if rsp.Close end if 'if tmp_reg_2 <> 0 then '### 크로스평가 관련 %> <% if tmp_method <> "15" and tmp_method <> "16" then %> <% end if %>
세금계산서 checked <% end if %>> 발행전           checked <% end if %>> 발행완료 최종완료 checked <% end if %>> 미확정           checked <% end if %> <% if tmp_reg_2 = 0 then %> disabled <% end if %>> 확정
<% end if 'if (rsc("p_reg_rsch") = "1") and (tmp_view = "18" or tmp_admin_chk = "1") then %> <% end if 'if tmp_admin_chk = "1" or tmp_regok = 1 then %> <% if (tmp_field_admin = "1" or tmp_admin_chk = "1") and (tmp_regok = 1) then '경영지원실 실사경비 담당(김영희) 이거나 어드민이면 보임, 3개부서 완료 %>
조사방법 (확정) "> 표본수 (확정) value="1" <%elseif clng(rsc("p_sample_chk")) = 0 then %> value="1" <%else%> value="<%=rsc("p_sample_chk")%>" <%end if%>>
계약액 (확정) <% tmp_text = "" if rsc("p_budget_chk") <> "" then tmp_len = len(rsc("p_budget_chk")) for i = 1 to int(tmp_len) if i mod 3 = 1 and i <> 1 then tmp_text = "," & tmp_text end if tmp_text = left(right(rsc("p_budget_chk"),i), 1) & tmp_text next end if if trim(tmp_text) <> "" then if clng(tmp_text) = 0 then tmp_text=1 end if else tmp_text=1 end if %> 원 (VAT 별도) 샘플당단가 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
문항수 (확정) "> 오픈수 (확정) " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
조사분류 면접소요시간
기준Pay단가   실사수행
검증부수 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> 검증률 ">
에러부수 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> 에러율 ">
교육참가인원 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> 총면접인원 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
전체검증이관부수 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> AS투여시간 " onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
실사난이도
<% end if %> <% If Session("teamplace") <> 10 Then '인턴,계약직,프리랜서일 경우 안보이도록 if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '연구부서이거나 어드민 이거나 3개부서 등록완료 tmp_button = 1 elseif (tmp_view = 12 OR tmp_view = 16) and trim(rsc("p_rsch_1")) <> "" then tmp_button = 1 elseif (tmp_view = 15 OR tmp_view = 17) and trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then tmp_button = 1 else tmp_button = 0 end if if rsc("p_reg_rsch") = "0" or isnull(rsc("p_reg_rsch")) then tmp_style1 = "" tmp_style2 = "none" tmp_report = "0" else tmp_style1 = "none" tmp_style2 = "" tmp_report = "1" end if %> ">
<% if tmp_button = 1 then '3개부서 등록 완료거나 자기부서 등록차례라면 버튼이 보이도록 함 '* 만약 경영지원실에서 최종완료를 하면 경영지원실을 제외한 전부서가 저장버튼을 사용 할 수 없게 함 if rsc("p_reg_mana") = "1" then if Session("Depart_Code") = "18" or tmp_admin_chk = "1" then tmp_chk = "1" else tmp_chk = "0" end if else if rsc("p_reg_rsch") = "1" then '연구부서 완료시(경영지원실은 미완료중) 연구부서만 확인버튼 보임 if cint(rsc("p_depart")) = cint(tmp_login_code) or tmp_admin_chk = "1" then '내부서 프로젝트일 때만 확정할 수 있음 tmp_chk = "1" else tmp_chk = "0" end if else if cint(rsc("p_depart")) = cint(tmp_login_code) or (int(tmp_login_code) > 10 and int(tmp_login_code) < 20) then '내부서 프로젝트이거나 실사,전산부서일 때만 확정할 수 있음 tmp_chk = "1" else tmp_chk = "0" end if end if end if '---------------------------------------------------------------------------------------- '2014-10-07 수정 : 테이블 바뀜. 데이터 있어야 다운로드 보임. query = "SELECT * " query = query & "FROM T_SYSTEM_ATTACH " query = query & "WHERE f_p_sn = '" & rsc("p_sn") & "' " query = query & "AND f_use_yn = 'Y' " rsp.Open query, adoConn, 1 if rsp.RecordCount > 0 then tmp_down_view = "1" else tmp_down_view = "0" end if rsp.Close '---------------------------------------------------------------------------------------- if tmp_regok = "1" AND tmp_down_view = "1" then %> <% end if end if %>    <% if (cint(rsc("p_depart")) = cint(tmp_login_code) AND my_pos >= 2) then' or tmp_admin_chk = "1" then %> <% end if end if '인턴,계약직,프리랜서일 경우 안보이도록 %>
<% end if rsc.Close %>